2016-05-13 19:02:39 +02:00
|
|
|
|
rules:
|
|
|
|
|
|
slug:
|
2017-02-17 15:28:03 +01:00
|
|
|
|
pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
|
|
|
|
|
|
min: 1
|
|
|
|
|
|
max: 200
|
2016-05-13 19:02:39 +02:00
|
|
|
|
|
|
|
|
|
|
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:
|
2017-02-17 15:28:03 +01:00
|
|
|
|
rule: slug
|
2016-05-13 19:02:39 +02:00
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
|
|
route:
|
2017-04-10 15:07:14 -06:00
|
|
|
|
type: parents
|
2017-04-10 15:16:43 -06:00
|
|
|
|
label: PLUGIN_ADMIN.PAGE
|
2016-05-13 19:02:39 +02:00
|
|
|
|
classes: fancy
|
|
|
|
|
|
validate:
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
|
|
name:
|
|
|
|
|
|
type: select
|
|
|
|
|
|
classes: fancy
|
|
|
|
|
|
label: PLUGIN_ADMIN.MODULAR_TEMPLATE
|
|
|
|
|
|
help: PLUGIN_ADMIN.PAGE_FILE_HELP
|
|
|
|
|
|
default: default
|
2017-06-27 20:43:12 +02:00
|
|
|
|
data-options@: '\Grav\Plugin\AdminPlugin::pagesModularTypes'
|
2016-05-13 19:02:39 +02:00
|
|
|
|
validate:
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
|
|
modular:
|
|
|
|
|
|
type: hidden
|
|
|
|
|
|
default: 1
|
|
|
|
|
|
validate:
|
|
|
|
|
|
type: bool
|
|
|
|
|
|
|
|
|
|
|
|
blueprint:
|
|
|
|
|
|
type: blueprint
|