Loading...
 
Skip to main content

History: Split_Level_Menu

Source of version: 53 (current)

Copy to clipboard
            Will have
# one top level horizontal menu
# second & third level menus will be on the left, and contextual to what menu item is chosen at the top

!! Creating the menu
{CODE(caption=>YAML)}
objects:
 -
  type: menu
  ref: split_level_menu
  data:
   name: My Menu
   description: A menu containing the base navigation of the site
   collapse: none
   position: left
   order: 1
   groups: [ Anonymous ]
   items:
    -
     name: Home
     url: ((HomePage))
     groups: [ Anonymous ]
    -
     name: Private Area
     url: ((PrivateArea))
     groups: [ Registered ]
     items:
      -
       name: Forum
       url: tiki-forums.php
    -
     name: There should be nothing here
     url: ((Nada))
    -
     name: Account Moderation
     url: tiki-adminusers.php
     permissions: [ admin_users ]
    -
     name: Administration
     url: tiki-admin.php
     permissions: [ admin ]
     items:
      -
       name: Forum admin
       url: tiki-admin_forums.php
    -
     name: Contact
     url: tiki-contact.php  
    -
     name: Admin menu
     url: tiki-admin_menu_options.php?menuId=$profileobject:split_level_menu$
     permissions: [ edit_menu_option ]
{CODE}


!!Add horizontal menu to top bar
{CODE(caption=>YAML)}
preferences:
 feature_phplayers: y
 feature_cssmenus: y
 feature_top_bar: y
 feature_sitemenu: y
 feature_topbar_id_menu: $profileobject:split_level_menu$
{CODE}


See:
http://doc.tiki.org/Menus