-
Notifications
You must be signed in to change notification settings - Fork 9
Matrix
spAnser edited this page Apr 12, 2016
·
2 revisions
{
"fields": [{
"group": "Default",
"name": "Matrix",
"handle": "matrix", // This line is optional
"instructions": "This is not a required field.",
"type": "Matrix",
// For PlainText typeSettings & everything inside is optional
"typeSettings": {
"maxBlocks": 9,
"blockTypes": {
"new1": { // To store the info correctly this must be named using the string "new#" not using duplicates with other blockTypes
"name": "Block Type A",
"handle": "blockTypeA", // Unlike above this is is not optional
"fields": {
"new1": { // To store the info correctly this must be named using the string "new#" not using duplicates with other fields inside this blockType
"name": "Field A",
"handle": "fieldA", // Unlike above this is is not optional
"instructions": "", // Unlike above this is is not optional. If no instructions use a blank string here.
"required": true, // This is not a required field. Default if not provided false.
"type": "PlainText",
"typesettings": { // Take note unlike above this typeSettings is all lowercase.
// Use the typesettings for your selected field here.
}
}
}
}
}
}
}]
}
Native Fields
- Assets
- Categories
- Checkboxes
- Color
- Date
- Dropdown
- Entries
- Lightswitch
- Matrix
- MultiSelect
- Number
- PlainText
- PositionSelect
- RadioButtons
- RichText
- Table
- Tags
- Users
Plugin Support