Forums / Developer / HOw to Replace a while loop ?? / Comment44861
Clemens T
Wednesday 07 December 2005 8:46:12 am
Heya!
Here are some snippets:
{$top.name} {section var=node loop=$top.children} ================ {$node.name} {section var=obj loop=$node.children} ---------------- {$obj.name} {section var=el loop=$obj.object.list} {$el}{delimiter}:{/delimiter} {/section} ---------------- {/section} ================ {/section}
{let selected_id_array=$attribute.content} {section var=Options loop=$attribute.class_content.options} {section-exclude match=$selected_id_array|contains( $Options.item.id )|not} {$Options.item.name|wash( xhtml )} {delimiter}<br/> {/delimiter} {/section} {/let}
so basically it's the loop=.... what you need.
Have phun! Greets, Clemensps: just out of curiosity, why do you still code in 3.5?