Forums / Setup & design / Overriding pagelayout by section

"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".

Overriding pagelayout by section

Author Message

Cristian G. L.

Wednesday 02 June 2004 8:24:13 am

Hi!

I need 2 pagelayouts for my site: one for section number 10, and one for the others sections.
I tried putting this in my settings/siteaccess/mysiteaccess/override.ini.append:

[pagelayout_admin]
Source=pagelayout.tpl
MatchFile=pagelayout_admin.tpl
Subdir=templates
Match[section]=10

The file "pagelayout_admin.tpl" is placed in design/mysiteaccess/override/templates.
With this settings... the override works. But it works too much! Now, the system shows me "pagelayout_admin.tpl" <b>always</b>, in any section :-(.
How can i override pagelayout by section?

Thanks in advance

Bye