Forums / Developer / Building an array inside a loop / Comment42315
Tom Couwberghs
Wednesday 09 February 2005 3:36:53 am
OK i've found the problem. This trick doesn't work with section name. Try it like this:
{let filtered_items=array()} {section var=Child loop=fetch('content','list', hash(parent_node_id, $node.node_id))} ... {set filtered_items=$filtered_items|append($Child.item)} {/section} {/let}
Now the set and let are in the same scope, so that should work.