Content Management System - Information

BROM-Service * Inh. Manfred Bräuer * Neugasse 10 * 02625 Bautzen
Tel.: 03591 531654 * Fax: 03591 531655 * Mail: kontakt(at)brom-service(dot)de * Homepage: www.brom-service.de

Embed menus and format

A menu for the objects in a project is created automatically and is with the function "show_menu()" into a template integrated. In more recent templates, there is also the function show_menu2(), which provides extensive display capabilities. Since the new menu function to some extent still in its testing phase, will initially dispense with a description.

The menu function show_menu () can vary depending on the intended use in the index.php of the template will be called repeatedly. If the first parameter (MENU_NUMBER) greater than 1, indicates that the use of several menus to (several menus can enabled only in the PROFI version).
To display a single standard menu it is <?php show_menu(); ?> in the HTML code of the design template to use.

For an individual can display various parameters are passed, the following are explained. Normally you need only the first four parameters.

Syntax:

show_menu(MENU_NUMBER, START, LEVEL, COLLAPSE,
          ITEM, ITEM_FOOTER, MENU_HEADER, MENU_FOOTER,
          DEFAULT_CLASS, CURRENT_CLASS, PARENT)

Description of parameters:

Pos. Parameter Description Standard
1 MENU_NUMBER Number of the menu for several menus* 1
2 START Start level (depth) of the first entry* 0
3 LEVEL Shown below levels first entry (at -1 are all shown)* -1
4 COLLAPSE Sub-menus open/close (true) or always visible (false)* true
5 ITEM HTML code for the menu call '<li><span [class]>[a][menu_title] [/a]</span>'
6 ITEM_FOOTER HTML code for completion menu item '</li>'
7 MENU_HEADER HTML code before the menu or menu block '<ul>'
8 MENU_FOOTER HTML code for the menu end or menu block '</ul>'
9 DEFAULT_CLASS CSS class for each menu item without the currently selected 'class="menu_default"'
10 CURRENT_CLASS CSS class for currently selected menu item 'class="menu_current"'
11 PARENT The parents page of the menu entry (only used internally)* 0

* With this character descriptions show marked only in the PROFI version of the effect and should be included in the BASIC version is always the default parameters retain.

The fields used in [class], [a], [menu_title] and [/a] are compared with the corresponding values in the display replaced. This is the entry [a] synonymous with <a [class].