How to override pagelayout

Author Message

Donald Cramb

Monday 06 September 2004 9:56:51 pm

I would like to override pagelayout.tpl so that the welcome page has a different layout from the rest of my site. I have looked into overriding the template from my admin site but can't see how to trigger it. Does anyone know how to do this,

Thanks,

dcramb

Eivind Marienborg

Monday 06 September 2004 10:03:48 pm

You have to create an overrice based on node ID. This can't be set up through the web administrator interface, so you'll have to edit the override.append.ini file manually. It's located in /settings/siteaccess/[yoursite]/.

Add the following:

[welcome_page]
Source=pagelayout.tpl
MatchFile=YOUR_WELCOME_PAGE_TEMPLATE.tpl
Subdir=templates
Match[node]=2 (OR whatever node your welcome page has)

After you've added this to the file, it will show up in the web admin interface, letting you administrate priority there.

Donald Cramb

Monday 06 September 2004 10:29:33 pm

Great, thanks it worked. I set IndexPage within SiteSettings in site.ini.append.php to my welcome page, then did what followed the previous instructions and it worked

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