Root property: menu #
The Menu main key is optional. When not defined Quiqr creates two menu sections: Singles and Collections.
When menu
is defined the default Quiqr content navigation is overriden by this configuration.
Properties #
There are the properties of a single menu dictionary.
property | value type | optional | description |
---|---|---|---|
key | string | mandatory | Keys are for internal use and must be unique |
title | string | mandatory | The title of this menu |
menuItems | array of dictionaries | mandatory | contains a menu items |
matchRole | string | optional | when set to “siteDeveloper” this menu is only visible in the role Site Developer |
Every menu item has a dictionary with. These are the properties of a menu item.
property | value type | optional | description |
---|---|---|---|
key | string | mandatory | this refers to the key of the defined Single of Collection |
Example #
./model/base.
menu:
- key: pages
menuItems:
- key: about
title: Pages
- key: blog
menuItems:
- key: posts
title: Groups
- key: config
menuItems:
- key: config
title: Settings
[[menu]]
key = "pages"
title = "Pages"
[[menu.menuItems]]
key = "about"
[[menu]]
key = "blog"
title = "Groups"
[[menu.menuItems]]
key = "posts"
[[menu]]
key = "config"
title = "Settings"
[[menu.menuItems]]
key = "config"
{
"menu": [
{
"key": "pages",
"menuItems": [
{
"key": "about"
}
],
"title": "Pages"
},
{
"key": "blog",
"menuItems": [
{
"key": "posts"
}
],
"title": "Groups"
},
{
"key": "config",
"menuItems": [
{
"key": "config"
}
],
"title": "Settings"
}
]
}