How to match different pagelayouts within one section?

Author Message

Clay Pereira

Wednesday 18 February 2004 11:44:51 am

How do I override the pagelayout.tpl for different classes within the same section.

For example I want the root folder to have my 3 column pagelayout. I want my info_page class to have my header single column layout and finally my article class to have a different pagelayout.

I seem to be only able to override the entire section not individual classes.

Clay Pereira

Wednesday 18 February 2004 12:08:12 pm

Answered My Own Question?

I think I had a priority issue going on. As soon as I moved these to entries to the top of the override.ini.append file all worked.

[pagelayout_section_4]
Source=pagelayout.tpl
MatchFile=pagelayout_section_4.tpl
Subdir=templates
Match[class]=1
Match[section]=4

[pagelayout_articles_section_4]
Source=pagelayout.tpl
MatchFile=pagelayout_articles_section_4.tpl
Subdir=templates
Match[class]=18
Match[section]=4

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 19 2025 11:41:55
Script start
Timing: Jan 19 2025 11:41:55
Module start 'layout'
Timing: Jan 19 2025 11:41:55
Module start 'content'
Timing: Jan 19 2025 11:41:56
Module end 'content'
Timing: Jan 19 2025 11:41:56
Script end

Main resources:

Total runtime0.9555 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.3984152.6563
Module start 'layout' 0.00460.0027 742.054739.5078
Module start 'content' 0.00730.9466 781.5625425.9531
Module end 'content' 0.95390.0016 1,207.51568.1094
Script end 0.9555  1,215.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3143160.0002
Check MTime0.00120.1293160.0001
Mysql Total
Database connection0.00080.078510.0008
Mysqli_queries0.915095.7649520.0176
Looping result0.00040.0465500.0000
Template Total0.915895.820.4579
Template load0.00200.207120.0010
Template processing0.913895.639020.4569
Template load and register function0.00020.025010.0002
states
state_id_array0.00100.103310.0010
state_identifier_array0.00190.199520.0010
Override
Cache load0.00160.1702210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.052610.0005
Fetch class attribute name0.00110.111720.0005
XML
Image XML parsing0.00010.011610.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00150.1564100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs