Forums / General / alternate pagelayout.tpl
Rinze Cats
Thursday 08 April 2004 2:55:48 am
Hi,
I am building a site that has a homepage which is distinctively different from the rest of the site. How can I use an alternate pagelayout.tpl for my homepage?
I read in an article comment that it is possible, but it didn't say how? From within the pagelayout.tpl i could use sections to adjust the behaviour. This is noce for assigning a different stylesheet per section, but not so nice when all html code needs to be replaced ;-)
greetz rinze
Alex Jones
Thursday 08 April 2004 6:11:09 am
Like any other template, you can override the pagelayout.tpl for that specific node. Here is an example:
[pagelayout_main_page] Source=pagelayout.tpl MatchFile=pagelayout_main_page.tpl Subdir=templatesMatch[node]=2
You will need to tweak it a bit to ensure the right template is called, but it should work. :)
Alex
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>