menu

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.

propertyvalue typeoptionaldescription
keystringmandatoryKeys are for internal use and must be unique
titlestringmandatoryThe title of this menu
menuItemsarray of dictionariesmandatorycontains a menu items
matchRolestringoptionalwhen 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.

propertyvalue typeoptionaldescription
keystringmandatorythis 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"
      }
   ]
}