Saturday 17 June 2006 1:22:00 pm
The <title> tag is generated automatically by eZ Publish. It contains the reversed path to the document. For example, the <title> tag from the eZ Publish Demo page on the eZ website is:
<title> Demo / eZ Publish / Products </title>
The title of the page
Optionally, you can modify the contents of the <title> tag, as every entity in eZ Publish is based on templates. The default template script that generates the <title> is contained in the page_head.tpl file:
{let name=Path path=$module_result.path reverse_path=array()} {section show=is_set($module_result.title_path)} {set path=$module_result.title_path} {/section} {section loop=$:path} {set reverse_path=$:reverse_path|array_prepend($:item)} {/section} {set-block scope=root variable=site_title} {section loop=$Path:reverse_path} {$:item.text|wash} {delimiter} / {/delimiter} {/section} {$site.title|wash} {/set-block} {/let} <title>{$site_title}</title>