init_trail
4.1.0
Tag {init_trail} returns array of all parents data for the current object allowing to print a location bar on the page.
Parameters
- name - variable name where the returned data is saved. Default value is "trail".
Attributes
- id - parent ID number
- href - link to the parent object, e.g. "?id=234"
- title - title of the parent
- hide_in_menu - value is 1 if object is hidden in menu (yellow action-button), 0 otherwise 4.3.0
Example:
{init_trail name="parents"}
{foreach from=$parents item="nav_item"}
<a href="{$nav_item->href}">{$nav_item->title}</a>
{/foreach}
RSS