Loading...
 
Themes

Themes


Re: Dynamic Menuing

Japan

Tiki has a ready-made solution for you: phplayers menu. (See one in use at my family website, which runs on Tiki 1.9.0: cunningham-lee.com).

First of all, turn on the phplayers menu feature on the Admin/Features page.

Then make a new menu on the Admin/Menus page. Your "links" should be given the type "section" and your "sublinks" should be give the type "option". Each link has a number. These numbers don't have to be sequential, but items are displayed in numerical order; I suggest skipping five or whatever numbers in between each menu item for possible future use. Then you won't have to renumber old items.

Each item should have the wiki section indicated (see the default Tiki menu for examples: things like "feature_blogs," and you can specify a permission and a group if you want to limit the item's visibility. Your admin links, for example, can have the "Admin" group set, so normal users will get the menu without these links.

When the menu is done and saved, get its number. Now you have to edit the tiki-top_bar.tpl file. Add the line
Copy to clipboard
{phplayers id=n type=horiz}

with n being the id number of your new menu.

The style details of the menu are determined by each theme's CSS file.

Good luck and post again if you have any questions.

-- Gary

There are no comments at this time.