Documenation

Menu

/_plugins/menu.php

This plugin returns items of the main menu. By default the main menu appears at the top of the website, in the header.

Custom menu items can be managed at /admin/menu/. To add a menu item, add a relative path (from the website root, e.g. node/21) or a URL on a separate line in the text area. If the path links to a node the node's title will automatically appear in the menu. To use a custom title, use Title|path (e.g. Example|http://example.com).

Class

$model->menu

Public functions

  • $model->menu->get_items ( )
    Returns a list of menu items.

See also