Thursday 29 July 2004 2:40:06 am
Hello, You could use this code to display the title, intro and body for all the articles in your "News" folder
{* Fetch everything that is under node #296 (children, grand-children, etc.) *}
{let nodes=fetch( 'content', 'tree', hash( 'parent_node_id', 296 ) ) }
{* Loop through the nodes and display their names. *}
{section loop=$nodes}
<br />
<a href={concat("/content/view/full/",$:item.node_id)|ezurl}>{$:item.data_map.title.data_text}</a>
<br />
{$:item.data_map.intro.data_text}
<br />
{$:item.data_map.body.data_text}
<br />
{/section}
{/let}
simply replace the node id 296 with the node id of your "News"-folder. For displaying all the articles in your "Science"-folder, simply use the code above another time, with the node id of the "Science"-folder. this should work. Nico
http://www.heiringhoff.de
|