Menuitem

Represents single menu item object in site structure. You can build site structure by using available menuitem objects.

Available properties

These properties give access to extra features on this object.

children

Returns list of menu item objects which represent children of the page this menu item is currently representing.

children?

Returns true if menu item has children objects

children_with_hidden

Same as children but also returns child menuitems that are hidden.

current?

Returns true if current page is shown.

hidden_children

Returns all hidden child menu items. Useful when creating hidden menuitems button with {% menubtn %} tag like this:

{% menubtn item.hidden_children %}

selected?

Returns true if page or one of its children (or one of their childrens etc.) is currently shown.

selected_with_children?

Returns true if this menu item is currently selected AND also has children

title

Return title of page this menu item is representing

url

Returns url for page

visible_children

Returns all children of current menu item that are visible.