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

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:16:32
Script start
Timing: Jan 31 2025 06:16:32
Module start 'layout'
Timing: Jan 31 2025 06:16:32
Module start 'content'
Timing: Jan 31 2025 06:16:32
Module end 'content'
Timing: Jan 31 2025 06:16:32
Script end

Main resources:

Total runtime0.0129 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.0053 588.1563151.2109
Module start 'layout' 0.00530.0020 739.367236.6484
Module start 'content' 0.00730.0043 776.015686.1719
Module end 'content' 0.01160.0013 862.187529.9922
Script end 0.0128  892.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.2287140.0002
Check MTime0.00107.6638140.0001
Mysql Total
Database connection0.00096.622410.0009
Mysqli_queries0.002015.638930.0007
Looping result0.00000.085210.0000
Template Total0.00097.310.0009
Template load0.00086.014710.0008
Template processing0.00021.258210.0002
Override
Cache load0.00064.413710.0006
General
dbfile0.00108.006680.0001
String conversion0.00000.048240.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