How are the subnodes shown?

Author Message

Anekdoten <<>>

Wednesday 27 July 2005 12:23:44 am

Is possible print to display the content(subnodes) of a node? Thanks

David Eriksson

Wednesday 27 July 2005 3:50:04 am

{foreach $node.children as $child}
    {node_view_gui view=line node=$child}
{/foreach}

That will output the line templates for all children (subnodes) of a node.

/David

Anekdoten <<>>

Thursday 28 July 2005 12:29:47 am

Hi David,

thanks for the answer ... but I obtain this error:

array_keys (): The first argument should be an array in c : \ ezpublish \ ezpublish \ var \ corporate \ \ template \ compiled \ initiatives-b0dc2f4c6395e5047fa24a0fb566eaa9.php on cache line 635

please help me, have just started using EZP and do not know who to ask ... many thanks

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 31 2025 03:37:29
Script start
Timing: Jan 31 2025 03:37:29
Module start 'layout'
Timing: Jan 31 2025 03:37:29
Module start 'content'
Timing: Jan 31 2025 03:37:30
Module end 'content'
Timing: Jan 31 2025 03:37:30
Script end

Main resources:

Total runtime1.2152 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1250151.2109
Module start 'layout' 0.00470.0037 739.3359220.6875
Module start 'content' 0.00841.2059 960.02344,295.7734
Module end 'content' 1.21430.0008 5,255.79698.0078
Script end 1.2151  5,263.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2981160.0002
Check MTime0.00130.1066160.0001
Mysql Total
Database connection0.00070.055210.0007
Mysqli_queries1.131193.0820570.0198
Looping result0.00070.0546550.0000
Template Total1.149094.620.5745
Template load0.00220.185020.0011
Template processing1.146894.371620.5734
Template load and register function0.00170.138410.0017
states
state_id_array0.00230.187610.0023
state_identifier_array0.00210.172420.0010
Override
Cache load0.00180.1483120.0002
Sytem overhead
Fetch class attribute can translate value0.00220.177020.0011
Fetch class attribute name0.00260.211630.0009
XML
Image XML parsing0.00020.017120.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00140.1159100.0001
String conversion0.00000.000440.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
3content/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs