1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- return [
- '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
- 'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/modular_new.yaml',
- 'modified' => 1533014916,
- 'data' => [
- 'rules' => [
- 'slug' => [
- 'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
- 'min' => 1,
- 'max' => 200
- ]
- ],
- 'form' => [
- 'validation' => 'loose',
- 'fields' => [
- 'section' => [
- 'type' => 'section',
- 'title' => 'PLUGIN_ADMIN.ADD_MODULAR_CONTENT'
- ],
- 'title' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_ADMIN.PAGE_TITLE',
- 'validate' => [
- 'required' => true
- ]
- ],
- 'folder' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
- 'validate' => [
- 'rule' => 'slug',
- 'required' => true
- ]
- ],
- 'route' => [
- 'type' => 'parents',
- 'label' => 'PLUGIN_ADMIN.PAGE',
- 'classes' => 'fancy',
- 'validate' => [
- 'required' => true
- ]
- ],
- 'name' => [
- 'type' => 'select',
- 'classes' => 'fancy',
- 'label' => 'PLUGIN_ADMIN.MODULAR_TEMPLATE',
- 'help' => 'PLUGIN_ADMIN.PAGE_FILE_HELP',
- 'default' => 'default',
- 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesModularTypes',
- 'validate' => [
- 'required' => true
- ]
- ],
- 'modular' => [
- 'type' => 'hidden',
- 'default' => 1,
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'blueprint' => [
- 'type' => 'blueprint'
- ]
- ]
- ]
- ]
- ];
|