mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
107 lines
2.8 KiB
YAML
107 lines
2.8 KiB
YAML
|
rules:
|
||
|
slug:
|
||
|
pattern: "[a-z][a-z0-9_\-]+"
|
||
|
min: 2
|
||
|
max: 80
|
||
|
|
||
|
form:
|
||
|
validation: loose
|
||
|
fields:
|
||
|
|
||
|
tabs:
|
||
|
type: tabs
|
||
|
active: 1
|
||
|
|
||
|
fields:
|
||
|
content:
|
||
|
type: tab
|
||
|
title: PLUGIN_ADMIN.CONTENT
|
||
|
|
||
|
fields:
|
||
|
frontmatter:
|
||
|
classes: frontmatter
|
||
|
type: editor
|
||
|
label: PLUGIN_ADMIN.FRONTMATTER
|
||
|
autofocus: true
|
||
|
codemirror:
|
||
|
mode: 'yaml'
|
||
|
indentUnit: 4
|
||
|
autofocus: true
|
||
|
indentWithTabs: false
|
||
|
lineNumbers: true
|
||
|
styleActiveLine: true
|
||
|
gutters: ['CodeMirror-lint-markers']
|
||
|
lint: true
|
||
|
|
||
|
content:
|
||
|
type: markdown
|
||
|
|
||
|
uploads:
|
||
|
type: pagemedia
|
||
|
label: PLUGIN_ADMIN.PAGE_MEDIA
|
||
|
|
||
|
|
||
|
options:
|
||
|
type: tab
|
||
|
title: PLUGIN_ADMIN.OPTIONS
|
||
|
|
||
|
fields:
|
||
|
|
||
|
columns:
|
||
|
type: columns
|
||
|
|
||
|
fields:
|
||
|
column1:
|
||
|
type: column
|
||
|
|
||
|
fields:
|
||
|
|
||
|
ordering:
|
||
|
type: toggle
|
||
|
label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
|
||
|
help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
|
||
|
highlight: 1
|
||
|
options:
|
||
|
1: PLUGIN_ADMIN.ENABLED
|
||
|
0: PLUGIN_ADMIN.DISABLED
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
folder:
|
||
|
type: text
|
||
|
label: PLUGIN_ADMIN.FILENAME
|
||
|
validate:
|
||
|
type: slug
|
||
|
required: true
|
||
|
|
||
|
route:
|
||
|
type: select
|
||
|
label: PLUGIN_ADMIN.PARENT
|
||
|
classes: fancy
|
||
|
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
|
||
|
data-default@: '\Grav\Plugin\admin::rawRoute'
|
||
|
options:
|
||
|
'': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT
|
||
|
validate:
|
||
|
required: true
|
||
|
|
||
|
name:
|
||
|
type: select
|
||
|
classes: fancy
|
||
|
label: PLUGIN_ADMIN.MODULAR_TEMPLATE
|
||
|
default: default
|
||
|
data-options@: '\Grav\Common\Page\Pages::modularTypes'
|
||
|
validate:
|
||
|
required: true
|
||
|
|
||
|
column2:
|
||
|
type: column
|
||
|
|
||
|
fields:
|
||
|
order:
|
||
|
type: order
|
||
|
label: PLUGIN_ADMIN.ORDERING
|
||
|
|
||
|
blueprint:
|
||
|
type: blueprint
|