Forums / Setup & design / How to set the <title> ?

How to set the <title> ?

Author Message

Xavier Dutoit

Tuesday 11 October 2005 8:47:25 am

The way of how ez set the title (roughly the path) works fine for most of the pages.

However, for the homepage, I'd like to have something more specific. Any idea on how to set the title of a page ?

X+

http://www.sydesy.com

Ɓukasz Serwatka

Tuesday 11 October 2005 10:33:15 am

Path in <title> is generated in page_head.tpl. You can override this file and add some logic with {if}

{if eq( $module_result.node_id, HOME_ID )}
  special title
{else}
  standard title_path
{/if}

Just copy standard page_head.tpl into design/(your_design)/templates/ and add changes. Remeber to clear the cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog