Override Pagelayout.tpl

Author Message

Andy Boston

Friday 09 November 2007 2:50:55 am

I've read the article on override templates but to be totally honest I don't understand it.

How do I structure the override ini entry to change the homepage on an ezwebin installation from:-

extension/ezwebin/design/ezwebin/templates/pagelayout.tpl

to use

extension/ezwebin/design/ezwebin/override/templates/pagelayout_my_design.tpl

where my homepage is node 2

It's the paths to the appropriate files I can't figure out :-s

Any help would be greatly appreciated.

André R.

Friday 09 November 2007 5:37:45 am

If you want to override a template you can do that in two ways:

Plament: Put you own template with the same name and sme placment but in another design (one that has higher priority then the one you override).

Override system: place the file with a uniq name in the override folder (preferably in your own design, but for now just let it be in the ezwebin design) and add a entry in override.ini

In your case:

[my_pagelayout_design]
Source=pagelayout.tpl
MatchFile=pagelayout_my_design.tpl
Subdir=templates

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Andy Boston

Monday 12 November 2007 1:47:05 am

Thanks Andre.

Although, will that entry override the homepage node?

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