{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

nameDefines a variable where the returned data is saved. Default value is "trail".string 

Attributes

idID of the object.int 
hrefHyperlink address to the object in format of ?id=123. When aliases are used, returns alias name in public view instead.string 
titleTitle of the object.string 
hide_in_menuEquals 1 if object is marked to be hidden in menu.boolean4.3.0

Example

{init_trail name="parents"}
{foreach from=$parents item="parent"}
    <a href="{$parent->href}">{$parent->title}</a>
{/foreach}