Date de publication: le lundi 6 août 2007 à 18h51
Dernière modification: par Pascal BOYER le lundi 4 octobre 2010 à 18h02
« Article précédent: Table-free layout -- Mise en page sans tableau
» Article suivant: Meta information -- Les méta informations
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:
La balise <title>, générée automatiquement par eZ Publish, contient le chemin inversé du document. Par exemple, la balise <title> de la page de démonstration du type de site eZ website est:
<title> Demo / eZ Publish / Products </title>
The title of the page / Titre de la 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:
Vous pouvez éventuellement modifier le contenu de la balise <title> puisque toutes les entités de eZ Publish sont basées sur des templates. Le script de template par défaut qui génère la balise <title> est contenu par le fichier page_head.tpl:
{let name=Path</span> 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>
Commentaires














