Ticket #891 (closed enhancement: fixed)
Menu configuration files
| Reported by: | DarTar | Owned by: | DarTar |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | unspecified | Version: | 1.1.6.7 |
| Severity: | normal | Keywords: | trunk-unported |
| Cc: |
Description (last modified by BrianKoontz) (diff)
As per our discussion, I am introducing in 1.2 menu configuration files and a dedicated MakeMenu() method to parse them.
MakeMenu() looks for menu configuration files, loads them and parse them into unordered lists. Menu settings are currently stored in flat text files in a folder called config/. The file name (e.g. main_menu.inc) is used by MakeMenu() to identify the menu. To output the menu, simply call $this->MakeMenu('main_menu'); The file name can also be used in the stylesheet as an id for styling purposes (ul#main_menu). The suffix in the config files (.user, .admin or none) refers to the menu settings for the corresponding category of users (users with different privileges will see different menus).
Menu configuration files contain menu items in wiki markup and separated by new lines. When rendered, each item is formatted and embedded in a <li>. Menu items can consists of text, links, actions (in particular menulets, see #11).
To do
setup (attempt to import existing settings on upgrade)
References
Related tickets
- #11 menulets