This file defines every field that you can use in |theme|.mgcfg.
For how to use the fields in a template see Fields access
Field src
Every field accepts the following attributes (but nothing must be set):
name: Name
desc: Description
sett
req: true
max: 100
min: 100
default: Default Value
type: CheckBox
default: true|false
type: DropDown
options
key: Value
type: Editor
type: Email
Allows to repeat multiple fields.
Required field: fields
type: MultipleRepeat
addBtn: Add Fields
removeBtn: Remove Fields
fields
anotherField
name: Some Text
Allows to repeat one field.
Required field: field
type: SingleRepeat
addBtn: Add Field
removeBtn: Remove Field
field
text
name: Some Text
Even if you need to define a slug (here text), you will just receive an array in the template file.
type: Number
This is the default type.
Some you don't need to define type.
type: Textarea
type: SingleFile
selectBtn: Select Image
allowed -a: jpg, png, gif
notAllowed: Only jpg, png and gif are allowed
type: MultipleFiles
selectBtn: Select Images
allowed -a: jpg, png, gif
notAllowed: Only jpg, png and gif are allowed
type: Navigation
layouts -a: blog
resolve: short|full (default: short)
addBtn: Add Page
selectTitle: Select Page
selectBtn: Select
selectCancel: Cancel
type: Page
layouts -a: blog
noPage: yes (should only be set if you wan't to be able to don't choose a page)
resolve: short|full (default: short)