Forums / Setup & design / override.ini.append : how to associate a template to 2 different section?

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