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.

eZ debug

Timing: Jan 31 2025 06:13:26
Script start
Timing: Jan 31 2025 06:13:26
Module start 'layout'
Timing: Jan 31 2025 06:13:26
Module start 'content'
Timing: Jan 31 2025 06:13:26
Module end 'content'
Timing: Jan 31 2025 06:13:26
Script end

Main resources:

Total runtime0.0145 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.6094151.2734
Module start 'layout' 0.00500.0024 739.882836.7266
Module start 'content' 0.00750.0054 776.609490.2500
Module end 'content' 0.01290.0016 866.859429.9922
Script end 0.0145  896.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.0244140.0002
Check MTime0.00117.6183140.0001
Mysql Total
Database connection0.00064.222010.0006
Mysqli_queries0.002416.618130.0008
Looping result0.00000.075710.0000
Template Total0.00138.710.0013
Template load0.00096.090410.0009
Template processing0.00042.559210.0004
Override
Cache load0.00064.269710.0006
General
dbfile0.00128.111780.0001
String conversion0.00000.041140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs