Forums / Setup & design / override.ini.append : how to associate a template to 2 different 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".

override.ini.append : how to associate a template to 2 different section?

Author Message

Alessandro Cipriani

Tuesday 06 April 2004 2:18:48 am

hi all
my site is growing fast and i'm adding a lot of different section.
no problems until the moment i needed to associate the same template to 2 different sections.
let's say i have to associate mypagelayout to the section 25 and 26
in my override.ini.append i tried to set:

[mypagelayout]
Source=pagelayout.tpl
MatchFile=mypagelayout.tpl
Subdir=templates
Match[section]=25

[mypagelayout]
Source=pagelayout.tpl
MatchFile=mypagelayout.tpl
Subdir=templates
Match[section]=26

but with no results: only the second association works.
how to have this result?

best regards
alessandro

Paul Forsyth

Tuesday 06 April 2004 3:32:49 am

Try:

[mypagelayout]
Source=pagelayout.tpl
MatchFile=mypagelayout.tpl
Subdir=templates
Match[section]=25

[my_other_pagelayout]
Source=pagelayout.tpl
MatchFile=mypagelayout.tpl
Subdir=templates
Match[section]=26

paul