Christian Johansen
|
Thursday 19 July 2007 1:00:57 pm
Your first try looks correct at least. Have you tried printing some of the variables in the loop and so on to see whats going on? Do you get any errors in your debug outout? Both let and section are deprecated structures. Try to do the same with def/set and foreach. It's alot easier to read as well:
{def $children=false()
$grand_children=false()}
{set $children=fetch(content, list, hash(parent_node_id, $node.node_id,
sort_by, $node.sort_array,
class_filter_type, include,
class_filter_array, array( 'folder')))}
{foreach $children as $child}
{set $grand_children=fetch(content, list, hash(parent_node_id, $child.node_id,
sort_by, $child.sort_array,
class_filter_type, include,
class_filter_array, array( 'affaire')))}
{foreach $grand_children as $grand_child}
{node_view_gui view=line content_node=$grand_child}
{/foreach}
{/foreach}
|