Forums / Developer / Nesting problem using results from outer section

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>