Loading...
 
Skip to main content

History: Split_Level_Menu

Source of version: 22

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: my_menu
  data:
   name: My Menu
   description: A menu containing the base navigation of the site
   collapse: none

   position: left
   order: 5
   module_arguments: { css: y, sectionLevel: 1, type: vert }
    
   groups: [ Anonymous, Registered ]
   items:
    -
     name: Home
     url: ((HomePage))
     groups: [ Anonymous ]
     items: 
     -
      name: FAQ
      url: ((FAQ))
      groups: [ Anonymous ]
     -
     name: Services
     url: ((Services))
     groups: [ Anonymous ]
     items:
      -
       name: About us
       url: ((About us))
       groups: [ Anonymous ]
      -
      name: Newsletter
      url: tiki-newsletters.php
      groups: [ Anonymous ]
      items:
       -
        name: Contact
        url: ((Contact us))
        groups: [ Anonymous ]
       -
        name: Private Area
        url: ((PrivateArea))
        groups: [ Registered ]
       -
        name: Forum
        url: tiki-forums.php
        groups: [ Registered ]
       -
        name: Account Moderation
        url: tiki-adminusers.php
        permissions: [ admin_users ]
       -
        name: Administration
        url: tiki-admin.php
        permissions: [ admin ]
{CODE}

!!Add horizontal menu to top bar
{CODE(caption=>YAML)}
preferences:
 enable: [ feature_phplayers , feature_cssmenus , sitemycode_publish , feature_sitemycode ]
 sitemycode: "{menu id=$profileobject:my_menu$ css=y toLevel=0 type=horiz}"
{CODE}


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


        

History

Information Version
Tue 14 of Sep, 2010 02:20 GMT-0000 Marc Laporte cleaner 53
Sat 18 of Apr, 2009 08:55 GMT-0000 Marc Laporte 52
Sat 18 of Apr, 2009 08:07 GMT-0000 Marc Laporte 51
Tue 14 of Apr, 2009 16:45 GMT-0000 Marc Laporte 50
Mon 02 of Mar, 2009 22:11 GMT-0000 System Administrator trying something 49
Mon 02 of Mar, 2009 22:04 GMT-0000 System Administrator 48
Mon 02 of Mar, 2009 22:00 GMT-0000 System Administrator 47
Mon 02 of Mar, 2009 21:12 GMT-0000 System Administrator 46
Mon 02 of Mar, 2009 21:09 GMT-0000 System Administrator 45
Mon 02 of Mar, 2009 20:35 GMT-0000 System Administrator 44
Mon 02 of Mar, 2009 20:34 GMT-0000 System Administrator 43
Mon 02 of Mar, 2009 20:17 GMT-0000 System Administrator 42
Mon 02 of Mar, 2009 20:15 GMT-0000 System Administrator 41
Mon 02 of Mar, 2009 20:14 GMT-0000 System Administrator 40
Mon 02 of Mar, 2009 20:10 GMT-0000 System Administrator 39
Mon 02 of Mar, 2009 20:02 GMT-0000 System Administrator 38
Mon 02 of Mar, 2009 19:56 GMT-0000 System Administrator 37
Mon 02 of Mar, 2009 19:54 GMT-0000 slordjette Plugin modified by editor. 36
Mon 02 of Mar, 2009 19:47 GMT-0000 System Administrator 35
Mon 02 of Mar, 2009 19:32 GMT-0000 System Administrator 34
Mon 02 of Mar, 2009 19:04 GMT-0000 Marc Laporte 33
Mon 02 of Mar, 2009 19:01 GMT-0000 Marc Laporte back to original example, trying to get levels 32
Mon 02 of Mar, 2009 18:54 GMT-0000 Marc Laporte 31
Mon 02 of Mar, 2009 18:27 GMT-0000 Marc Laporte 30
Mon 02 of Mar, 2009 17:46 GMT-0000 Marc Laporte 29