History: Test_all_menus
Preview of version: 15
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
Table of contents
Create menus (hierarchy)
Creating the menu
YAML
Copy to clipboard
objects: - type: menu ref: very_long_menu data: name: My Menu description: A menu containing the base navigation of the site collapse: none 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
Assign in various ways
Add horizontal menu to top bar
YAML
Copy to clipboard
preferences: feature_phplayers: y feature_cssmenus: y feature_top_bar: y feature_sitemenu: y feature_topbar_id_menu: $profileobject:very_long_menu$
Tree
YAML
Copy to clipboard
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$}
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}Split level menu
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
in top custom code:
{menu id=101 css=y type=horiz toLevel=0}
in module
{menu id=101 css=y type=vert sectionLevel=1}
Amazon-style
Will have- one top-level horizontal menu
- just below, second & third level horizontal menus, and contextual to what menu item is chosen at the top
in top custom code:
{menu id=101 css=y type=horiz toLevel=0}
{menu id=101 css=y type=horiz sectionLevel=1}
See:
http://doc.tikiwiki.org/Menus
Easy theme switcher
Uses: Test_ThemesYAML
Copy to clipboard
dependencies: - $profiles.tikiwiki.org:Test_Themes:Test_Themes