A template for a node and its descent

Author Message

François Xavier Lacroix

Friday 17 June 2005 5:33:40 am

Hello,
I m quite new on ezpublish, and i wonder...
I know that i can override a template basing on its node_id, class identifier... but i was wondering if we can assign a template for a node and all of his children.

sincerely,
fx

Paul Borgermans

Friday 17 June 2005 7:33:39 am

Hi François Xavier,

You need to assign a section to teh subtree and then use the section for that.

For 1 level down, you can use the parent_node_id selector

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

François Xavier Lacroix

Friday 17 June 2005 7:47:45 am

Ok, i get it ;)
thx

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 18 2025 19:26:03
Script start
Timing: Jan 18 2025 19:26:03
Module start 'layout'
Timing: Jan 18 2025 19:26:03
Module start 'content'
Timing: Jan 18 2025 19:26:05
Module end 'content'
Timing: Jan 18 2025 19:26:05
Script end

Main resources:

Total runtime1.2571 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.0052 589.0469152.6250
Module start 'layout' 0.00520.0036 741.671939.4453
Module start 'content' 0.00881.2471 781.1172540.1172
Module end 'content' 1.25590.0012 1,321.234412.1563
Script end 1.2571  1,333.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2736160.0002
Check MTime0.00160.1253160.0001
Mysql Total
Database connection0.00080.066710.0008
Mysqli_queries1.204695.8261570.0211
Looping result0.00060.0503550.0000
Template Total1.221597.220.6108
Template load0.00220.175920.0011
Template processing1.219396.992320.6097
Template load and register function0.00010.011210.0001
states
state_id_array0.00140.112210.0014
state_identifier_array0.00160.128220.0008
Override
Cache load0.00180.1463200.0001
Sytem overhead
Fetch class attribute can translate value0.00130.099720.0006
Fetch class attribute name0.00180.145850.0004
XML
Image XML parsing0.00110.087320.0005
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00100.0779230.0000
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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs