{init_trail}
Commonly used for displaying a breadcrumbs. Available from version 4.1.0.
Usage
{init_trail [name = "value"]}Returns
Array of objects in current object's parent branch including current object itself.
Parameters
| name | Defines a variable where the returned data is saved. Default value is "trail". | string |
Attributes
| id | ID of the object. | int | |
| href | Hyperlink address to the object in format of ?id=123. When aliases are used, returns alias name in public view instead. | string | |
| title | Title of the object. | string | |
| hide_in_menu | Equals 1 if object is marked to be hidden in menu. | boolean | 4.3.0 |
Example
{init_trail name="parents"}
{foreach from=$parents item="parent"}
<a href="{$parent->href}">{$parent->title}</a>
{/foreach}
