daux.io/docs/05_Config/01_Parent.md

42 lines
1.5 KiB
Markdown
Raw Normal View History

2013-06-03 15:32:55 +02:00
A config object that contains other objects (admin sections) and displays them in a group.
Parent elements are characterized by a subhead in the admin panel navigation. They also group elements in the [[Outline (call)]].
{
"sample_parent": {
"title": "Sample Parent",
"type": "parent"
}
}
**Parameters**
| Name | Default | Description |
| :------------- | :------------- | :------------- |
| title | required | Descriptive title of the object. This value will be used to identify the object in the admin panel sidebar navigation. Required field. |
| type | parent | Object identifier. Required, must be set to: 'parent' |
### Single
The Single object is created in the config.json file. This will create a single page that can be edited in the admin panel and displayed on the front end.
{
"single-name": {
"title": "single-title",
"parent": "sample_parent",
"type": "single",
"fields": {
}
}
}
**Parameters**
| Name | Default | Description |
| :------------- | :------------- | :------------- |
| title | required | Descriptive title of the page. This value will be used to identify the object in the admin panel sidebar navigation. Required field. |
| type | single | Object identifier. Required, must be set to: 'single.' |
| parent | - | Defines parent container object. Allows you to group multiple objects together in the admin panel (like a folder). |
| nav | true | Allows you to hide or show object elements in the admin panel. |