Voog.com

Menu item

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

List of available attributes

These properties give access to extra features on this object.

Returns list of item objects which are representing all children (whether translated or untranslated) of current item.

As all_children, but includes the pages' data.

Returns true if the page associated with item is of the blog type.

Returns a list of menu item objects which represent visible and translated children of the page of this menu item.

As children, but includes the pages' data.

children?

Returns true if menu item has visible and translated children objects.

Same as children but includes child menuitems that are hidden.

Same as children_with_hidden but includes the pages'data.

Returns content type of the page associated with this item.

Returns true if item is current page shown.
Returns custom data for the current page.

Returns true if page is hidden from menu.

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

{% menubtn item.hidden_children %}

Same as hidden_children but includes the pages' data.

If menu item is obtained with the _with_data suffix returns an image object that is attached to page from page settings.

If menu item is obtained with the _with_data suffix it returns true or false depending whether image is attached to page.

If menu item is obtained with the _with_data suffix it returns image object that is attached to page from page settings. Alias for image.

If menu item is obtained with the _with_data suffix it returns true or false depending whether image is attached to page. Alias for image?.

Returns the name of the page's layout.

Returns true if page is an external link.

Returns relative path for given page item.

Returns id for given page item.

Returns related page object for given menu item.

Returns true if page is password protected.

Returns true if page or one of its descendants is currently active.

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

Returns the title of the page of this menu item. The value returned is that of page.menu_title, falling back to page.title if page.menu_tile is not set for the page.

Returns true if item is translated.

Returns the URL of the page.

Returns all children of current menu item that are visible.

Same as visible_children but includes the pages' data.

Serializes the menu item into a JSON string.