Tuesday 22 April 2003 3:12:52 am
Naturally, give each topic folder node_id to fetch statement as parent_node_id. If all your topic folders sit in one "Topics" folder, you can write nested loops - outer loop scans all topis and inner loop - each article in given topic.
There was tricky syntax for nested loops in pre-final releases when I tried them, don't know if this is fixed now. Generally, it should look like this: (assuming 10 is node id of your TOPICS folder)
{let topics_list=fetch(content, list, hash(parent_node_id, 10))}
{section name=topics loop=fetch(content, list, hash(parent_node_id, $topics_list))}
{section loop=fetch(content, list, hash(parent_node_id, $topics:item.node_id))}
{node_view_gui view=line content_node=$topics:item}
{/section}
{/section} {/let} This code is not tested so please do it yourself!
|