Clay Pereira
|
Monday 19 July 2004 7:37:42 am
Hello, Here is the code I use for summarising my folders. Replace my_forum_id with the node_id of your forum.
{let children=fetch( content,
list,
hash( parent_node_id, my_form_id,
class_filter_type, include,
class_filter_array, array( 'forum' ),
sort_by, $node.sort_array ) ) }
{section name=Child loop=$children sequence=array(bglight,bgdark) }
<div class="content-view-folder">
{node_view_gui view=line content_node=$Child:item}
<ul>
{let grandchildren=fetch('content',list,hash(parent_node_id,$Child:item.node_id, 'sort_by',array("name", true())))}
{section name=Grand loop=$:grandchildren}
<li><a href={$:item.url_alias|ezurl}>{$:item.object.data_map.name.content|wash}</li></a>
{/section}
</ul>
</div>
{/section}
{/let}
|