Loading...
 
Skip to main content

History: Test_all_menus

Source of version: 12

Copy to clipboard
            !Why

Tiki has several ways to represent menus.

#SuckerFish
**Horizontal
**Vertical
#PHPLayersmenu
**Tree
**Horizontal
**Vertical
#Classc Tiki menu
**Vertical in module

It is also possible to start a menu showing at a certain level: ((Split_Level_Menu))

Each menu should be tested with all themes.

This profile intends to show off all menu possibilities
{maketoc}

!Create menus (hierarchy)

!!Creating the menu
{CODE(caption=>YAML)}
objects:
 -
  type: menu
  ref: very_long_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: Preferences
       url: tiki-user_preferences.php
      -
       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  
{CODE}


!Assign in various ways
!!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:very_long_menu$
{CODE}

!!Tree
{CODE(caption=>YAML)}
objects:
 -
  type: module
  ref: module_demo_very_long_tree_menu
  data:
   name: module_demo_very_long_tree_menu
   position : right
   groups : Registered
   order: 5
   title: menu
   content: {phplayers id=$profileobject:very_long_menu$}
{CODE}




!!PLM Horiz
{phplayers id=$profileobject:very_long_menu$ type=horiz}

!!PLM vert
{phplayers id=$profileobject:very_long_menu$ type=vert}

!!tiki format
{menu id=$profileobject:very_long_menu$}

!!CSS/suckerfish format
{menu id=$profileobject:very_long_menu$ css=y} 


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




!!Easy theme switcher
Uses: ((Test_Themes))
{CODE(caption=>YAML)}
dependencies:
- $profiles.tikiwiki.org:Test_Themes:Test_Themes
{CODE}

        

History

Information Version
Tue 14 of Sep, 2010 03:16 GMT-0000 Marc Laporte cleaner 20
Tue 14 of Sep, 2010 02:46 GMT-0000 Marc Laporte cleaner 19
Fri 17 of Apr, 2009 21:29 GMT-0000 Marc Laporte 18
Fri 17 of Apr, 2009 20:23 GMT-0000 Marc Laporte 17
Thu 16 of Apr, 2009 03:40 GMT-0000 Marc Laporte 16
Thu 16 of Apr, 2009 03:31 GMT-0000 Marc Laporte 15
Thu 16 of Apr, 2009 03:30 GMT-0000 Marc Laporte 14
Thu 16 of Apr, 2009 03:21 GMT-0000 Marc Laporte 13
Thu 16 of Apr, 2009 03:20 GMT-0000 Marc Laporte 12
Thu 16 of Apr, 2009 03:20 GMT-0000 Marc Laporte 11
Thu 16 of Apr, 2009 03:18 GMT-0000 Marc Laporte 10
Thu 16 of Apr, 2009 03:05 GMT-0000 Marc Laporte 9
Thu 16 of Apr, 2009 02:56 GMT-0000 Marc Laporte 8
Thu 16 of Apr, 2009 02:52 GMT-0000 Marc Laporte 7
Thu 16 of Apr, 2009 02:48 GMT-0000 Marc Laporte 6
Thu 16 of Apr, 2009 02:46 GMT-0000 Marc Laporte 5
Thu 16 of Apr, 2009 02:45 GMT-0000 Marc Laporte 4
Thu 16 of Apr, 2009 02:44 GMT-0000 Marc Laporte 3
Thu 16 of Apr, 2009 02:42 GMT-0000 Marc Laporte 2
Thu 16 of Apr, 2009 02:41 GMT-0000 Marc Laporte 1