Listing names of all nodes under parent node

Author Message

Jason Filby

Sunday 31 August 2003 10:48:59 am

Hi

I would like to list the names of all nodes under the parent node. But I want only the name (as a URL - so that its clickable) for each node so that I can display a set of links - except that the node under the parent node that IS the current node won't be a link.

Any ideas?

Thanks
Jason

Paul Borgermans

Monday 01 September 2003 2:28:33 am

this can be done with another {section} construct inside the loop, eg something like:

{section show=eq($your_current_nodeid,$Child:item.node_id)}
no link ...
{section-else}
with a link ...
{/section}

hth

-paul

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

Jason Filby

Monday 01 September 2003 11:12:03 am

Thanks Paul, but I'm having more trouble with the loop itself! I've tried modifying the fetch example with no luck. Do you having working code for something like that?

Thanks
Jason

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 16:22:19
Script start
Timing: Jan 18 2025 16:22:19
Module start 'layout'
Timing: Jan 18 2025 16:22:19
Module start 'content'
Timing: Jan 18 2025 16:22:20
Module end 'content'
Timing: Jan 18 2025 16:22:20
Script end

Main resources:

Total runtime1.0958 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.0048 588.0391152.6406
Module start 'layout' 0.00480.0029 740.679739.4766
Module start 'content' 0.00781.0866 780.1563534.1250
Module end 'content' 1.09430.0014 1,314.28138.1250
Script end 1.0957  1,322.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2790160.0002
Check MTime0.00130.1220160.0001
Mysql Total
Database connection0.00060.058410.0006
Mysqli_queries1.046595.5033570.0184
Looping result0.00060.0512550.0000
Template Total1.065197.220.5325
Template load0.00240.219120.0012
Template processing1.062796.978120.5313
Template load and register function0.00030.023910.0003
states
state_id_array0.00080.076810.0008
state_identifier_array0.00120.105120.0006
Override
Cache load0.00200.1852220.0001
Sytem overhead
Fetch class attribute can translate value0.00170.157720.0009
Fetch class attribute name0.00250.232240.0006
XML
Image XML parsing0.00100.090920.0005
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00080.0691170.0000
String conversion0.00000.000840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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.0001 secs