How to get to the node above the parent

Author Message

Felix Laate

Wednesday 11 June 2003 5:59:49 am

Hi all!

I need to get a list of the articles in the node above the parent_node.

i.e. if this is the case:

people
- george
- peter

If I go to george, I need to be able to get a list of all the content of people.

I've tried this one:

loop=fetch(content,list,hash(parent_node_id,$DesignKeys:used.node,class_filter_type,include,class_filter_array,array(2))) show=eq($DesignKeys:used.viewmode,'full')}

:-) Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Jan Borsodi

Wednesday 11 June 2003 7:04:34 am

If you're inside a node template (node/view/full.tpl) you can do
loop=fetch(content,list,hash(parent_node_id,$node.parent_node_id,class_filter_type,include,class_filter_array,array(2)))

The $node variable is the current node and the attribute parent_node_id returns the id of the parent node.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 10:54:33
Script start
Timing: Jan 18 2025 10:54:33
Module start 'layout'
Timing: Jan 18 2025 10:54:33
Module start 'content'
Timing: Jan 18 2025 10:54:34
Module end 'content'
Timing: Jan 18 2025 10:54:34
Script end

Main resources:

Total runtime1.4125 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1484152.6406
Module start 'layout' 0.00500.0034 741.789139.4766
Module start 'content' 0.00841.4025 781.2656527.5234
Module end 'content' 1.41090.0016 1,308.78918.1406
Script end 1.4125  1,316.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2209160.0002
Check MTime0.00130.0920160.0001
Mysql Total
Database connection0.00100.071310.0010
Mysqli_queries1.360996.3491540.0252
Looping result0.00060.0447520.0000
Template Total1.379697.720.6898
Template load0.00240.172420.0012
Template processing1.377297.499820.6886
Template load and register function0.00010.008010.0001
states
state_id_array0.00230.163110.0023
state_identifier_array0.00160.112920.0008
Override
Cache load0.00200.1451190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.050920.0004
Fetch class attribute name0.00150.105840.0004
XML
Image XML parsing0.00100.072920.0005
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00090.0638230.0000
String conversion0.00000.000540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs