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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to override the pagelayout.tpl ?

Author Message

Romain Laurent

Friday 19 February 2010 6:59:41 am

After installing Exponential 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.

Exponential will search a file named pagelayout_ecommerce.tpl .