Forums / General / Listing names of all nodes under parent node

Listing names of all nodes under parent node

Author Message

Jason Filby

Sunday 31 August 2003 10:48:59 am

Hi

I would like to list the names of all nodes under the parent node. But I want only the name (as a URL - so that its clickable) for each node so that I can display a set of links - except that the node under the parent node that IS the current node won't be a link.

Any ideas?

Thanks
Jason

Paul Borgermans

Monday 01 September 2003 2:28:33 am

this can be done with another {section} construct inside the loop, eg something like:

{section show=eq($your_current_nodeid,$Child:item.node_id)}
no link ...
{section-else}
with a link ...
{/section}

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jason Filby

Monday 01 September 2003 11:12:03 am

Thanks Paul, but I'm having more trouble with the loop itself! I've tried modifying the fetch example with no luck. Do you having working code for something like that?

Thanks
Jason