recursive override

Author Message

paul bolger

Sunday 09 September 2007 8:21:28 pm

I need to override a template for the grandchildren of a node.

Match[node] doesn't work, Match[parent_node] seems to only affect the children, Match[navigation_part] doesn't seem to work at all...

I've tried - guessing, as a last resort! - Match[subtree] but that doesn't work either.

Is this possible? The documentation for override conditions is a little... sketchy!

For those interested, my use-case is that I'm putting calendar events into 'year' subfolders to reduce the amount of future clutter.

Paul Bolger

Kåre Køhler Høvik

Monday 10 September 2007 12:45:08 am

Hi

Can you work around this by overriding the template using, depth, class, parent_class and section ( perhaps more ) conditions at the same time.

See also: http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_override_conditions

Kåre Høvik

paul bolger

Monday 10 September 2007 7:32:35 pm

Hi Kåre

So I could conceivably use parent_node + depth? Is depth in this context relative to the specified node, or is it absolute?

Would the following:

Match[parent_node]=2477
Match[depth]=2

give you two levels below node 2477, or two levels below the top level?

As a matter of interest, how does navigation_part_identifier work? I would expect it to affect any node, or nodes, whose url includes a string, is this not the case?

Thanks

Paul Bolger

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 01:08:21
Script start
Timing: Jan 19 2025 01:08:21
Module start 'layout'
Timing: Jan 19 2025 01:08:21
Module start 'content'
Timing: Jan 19 2025 01:08:23
Module end 'content'
Timing: Jan 19 2025 01:08:23
Script end

Main resources:

Total runtime1.5220 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1328152.6094
Module start 'layout' 0.00640.0032 741.742239.4141
Module start 'content' 0.00961.5110 781.1563536.8594
Module end 'content' 1.52060.0014 1,318.015612.1875
Script end 1.5220  1,330.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2059160.0002
Check MTime0.00130.0860160.0001
Mysql Total
Database connection0.00130.087610.0013
Mysqli_queries1.469796.5654570.0258
Looping result0.00060.0387550.0000
Template Total1.486897.720.7434
Template load0.00220.145120.0011
Template processing1.484697.540720.7423
Template load and register function0.00010.006010.0001
states
state_id_array0.00160.108310.0016
state_identifier_array0.00230.150020.0011
Override
Cache load0.00190.1219230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.055020.0004
Fetch class attribute name0.00230.151150.0005
XML
Image XML parsing0.00080.055220.0004
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00140.0936210.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs