Share » Forums » General » Printing Sub-folders content...

Printing Sub-folders content...

Printing Sub-folders content...

Thursday 19 July 2007 2:26:40 am - 2 replies

Author Message

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}

Francis Poézévara

Tuesday 24 July 2007 7:02:36 am

Works fine with your solution ! thx !

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu