Nesting problem using results from outer section

Author Message

Chris Fullerton

Tuesday 16 March 2004 8:55:45 pm

OK, this might be a newbie question, but after searching for a while I can't seem to find the answer.

I'm trying to do menu/submenu loops, but not getting anything from the inner section. (I'd be glad to RTFM if someone could point me in the right direction).

Thanks.

Example code:

{let folder_list=fetch( content, list, hash( parent_node_id, 2, class_filter_type, include, class_filter_array, array( 'folder' ) ) ) }

{section name=Folder loop=$folder_list}
<li><a href={concat( "/content/view/full/", $Folder:item.node_id, "/" )|ezurl}>{$Folder:item.name|wash}</a></li>

{* sub menus *}
{let sub_list=fetch( content, list, hash( parent_node_id, $Folder:item.node_id, class_filter_type, include, class_filter_array, array( 'folder' ) ) ) }

{section name=SubFolder loop=$sub_list}

<li><a href={concat( "/content/view/full/", $SubFolder:item.node_id, "/" )|ezurl}>{$SubFolder:item.name|wash}</a></li>

{/section}
{/let}
{* end sub menu *}

{/section}
{/let}
</ul>

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 18:32:42
Script start
Timing: Jan 18 2025 18:32:42
Module start 'layout'
Timing: Jan 18 2025 18:32:42
Module start 'content'
Timing: Jan 18 2025 18:32:42
Module end 'content'
Timing: Jan 18 2025 18:32:42
Script end

Main resources:

Total runtime0.5546 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0469152.6406
Module start 'layout' 0.00700.0037 740.687539.4766
Module start 'content' 0.01070.5424 780.1641405.3750
Module end 'content' 0.55310.0014 1,185.53918.1250
Script end 0.5546  1,193.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6338160.0002
Check MTime0.00140.2574160.0001
Mysql Total
Database connection0.00210.380610.0021
Mysqli_queries0.512492.3950460.0111
Looping result0.00040.0739440.0000
Template Total0.524194.520.2620
Template load0.00220.393420.0011
Template processing0.521994.099820.2609
Template load and register function0.00030.057210.0003
states
state_id_array0.00110.197410.0011
state_identifier_array0.00110.201320.0006
Override
Cache load0.00180.3268200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.155110.0009
Fetch class attribute name0.00050.095910.0005
XML
Image XML parsing0.00010.021110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00050.0964100.0001
String conversion0.00000.001640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs