Dynamic site title

Although you can enter the site title (HTML TITLE-tag) manually, you would sometimes wish to form the title dynamically. The following example displays title entered by user, the path to current object and the title of the current object.

<title>{strip}{$title}
    {init_trail name="path"}
       {foreach from=$path item="path_item"}
          : {$path_item->title}
       {/foreach}
{/strip}</title>