Share » Forums » Setup & design » Links from menus

Links from menus

Links from menus

Monday 02 May 2005 9:37:39 am - 1 reply

Author Message

M M

Wednesday 04 May 2005 6:43:19 am

Hi
You can do that simply by making a nested loop so that it would display the grand children of the parent node, so i think you would do the following

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

{*this is the first outside loop*}
{section name=meny loop=$menyitems}
<a href="{$meny:item.url_alias}">
{$meny:item.name}
</a>
<br />

{*this is the second internal loop*}

{section var=meny2 loop=fetch( 'content', 'list', hash('parent_node_id',$meny.node_id))}

{$meny2.name}

{/section}

{*end of second internal loop*}

{/section}

{*end of first outside loop*}

I hope this would help

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu