Forums / Developer / Building an array inside a loop / Comment42313
Tom Couwberghs
Wednesday 09 February 2005 2:02:07 am
Try something like:
{let filtered_items=array()} {section name=Child loop=fetch('content','list', hash(parent_node_id, $node.node_id))} {section-exclude match=$Child:item.data_map.category.content.enumobject_list.0.enumvalue|eq('kopes')} {section-exclude match=$Child:item.data_map.category.content.enumobject_list.0.enumvalue|eq('skankes')} {section-exclude match=$Child:item.data_map.category.content.enumobject_list.0.enumvalue|eq('bytes')} {set filtered_items=$filtered_items|append($Child:item)} {/section} {$filtered_items|attribute(show)} {/let}