Page title

Page title

Friday 26 December 2003 9:13:33 am - 4 replies

Author Message

Paul Borgermans

Friday 26 December 2003 11:56:45 am

Hi Amina

The title you set in site.ini.append.php is the default. This means it is overriden by the module being called. For content views, it is the object name with the path to the object appended to it.

So it is hard to change without modifying the kernel code. What did you have in mind?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Balazs Halasy

Friday 26 December 2003 1:32:35 pm

I believe Amina would like to have a static title that appears, for example "My cool company" for all pages, regardless of the content/node that is displayed. Just guessing.. not exactly sure how to do this myself - never tried.. any suggestions Paul?

Balazs

Amina Bacar

Saturday 27 December 2003 12:38:14 am

Yes Balazs that's what i have in mind.

I'm not to concerned about other pages, but i would like to have a nice title in the homepage.

Did anyone tried this before?

Amina.

Paul Borgermans

Saturday 27 December 2003 4:12:27 am

Hi Balazs & Amina

It turns out to be easy by modifying page_head.tpl

Suppose your sitedesign is "mysite", then copy the template file design/standard/templates/page_head.tpl to
design/mysite/templates/page_head.tpl and look for the code around line 14 and comment out the section that loops the reverse path as below and leaving only the site title

-----------------------------
{set-block scope=root variable=site_title}
{*section loop=$Path:reverse_path}{$:item.text|wash}{delimiter} / {/delimiter}{/section*}{$site.title|wash}
{/set-block}
-----------------------------

After this, clear the template cache and you should only get the site name as title in the <head> section.

I suggest to do this only for your "mysite" design, and not to modify the design/standard/templates/page_head.tpl

If you need to change other templates like this always copy them to your specific design in the templates directory.

regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.