Forums / Developer / Change title on one page only

Change title on one page only

Author Message

Glenn MacGregor

Wednesday 20 October 2004 9:03:35 am

Hi All,

Is it possable to change the html title tag on one page only. I want to change it on the front page only. I see where it is created in the page_head in the standard area. I don't really want to change that, so is there anyother way?

Thanks

Glenn

bisk

Wednesday 20 October 2004 10:07:52 am

Simply create a template override for page_head.tpl for the frontpage only. I've done the same.

in your override.ini of your siteaccess add something like this, where match node is the node id of the frontpage:
[front_page_head]
Source=page_head.tpl
MatchFile=front_page_head.tpl
Subdir=templates
Match[node]=2

Copy the page_head.tpl from the standard templates to your site design /override/templates/ and rename it to the matchfile, in this case front_page_head.tpl. Edit the template to your likings, save, clear the cache and you're all set.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Glenn MacGregor

Wednesday 20 October 2004 11:32:15 am

Great! Thanks, works like a charm.

Glenn