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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.