Forums / Install & configuration / Nested loops / Comment812
Volker Lenz
Thursday 30 January 2003 1:27:55 pm
> > Try to use this code: > > {section name=Folder loop=$folder_list} > > <a > > > href={concat("content/view/full/",$Folder:item.node_id,"/")|ezurl}>{$Folder:item.name}</A> > > > > <UL> > > {section loop=$subfolder_list} > > <LI><a href=#>{$Folder:item.name}</a> > > {/section} > > </UL> > > {/section} > > ----------->
This one should do the job, too -- if you have reasons to seperate namespaces in more complicated situations: {section name=Folder loop=$folder_list} <a href={concat("content/view/full/",$Folder:item.node_id,"/"|ezurl}>{$Folder:item.name}</a> <ul> {section name=SubFolder loop=$subfolder_list} <li><a href=#>{$Folder:$SubFolder:item.name}</a></li> {/section} </ul> {/section}