Forums / Developer / How to override the pagelayout.tpl ?

How to override the pagelayout.tpl ?

Author Message

Romain Laurent

Friday 19 February 2010 6:59:41 am

After installing eZPublish 4.2 with eZwebin, I try to override the pagelayout.tpl in design/ezwebin_site/templates/ like say in http://ez.no/doc/ez_publish/technical_manual/4_x/templates/the_pagelayout

But it doesn't work at all !

Do someone know a right construct tutorial on how to do it ?

Davide Garzetti

Friday 19 February 2010 8:25:53 am

To overrdide pagelayour.tpl you need to modify override.ini in your siteaccess directory.

For example you can insert somthing like this:

[pagelayout_ecommerce]
Source=pagelayout.tpl
MatchFile=pagelayout_ecommerce.tpl
Subdir=templates
Match[section]=8

to override the pagelyout for a specific section. Or you can remove the last line to override for all section.

EzPublish will search a file named pagelayout_ecommerce.tpl .