Forums / Setup & design / Navigating Articles

Navigating Articles

Author Message

Neil Kanth

Wednesday 16 February 2005 1:37:30 pm

I want to have each category/(node or section) to have their articles listed in the Left Column as a link. How can I accomplish this?
The closest I have gotten is with this piece of code:

{*This code list the items in the current folder without links to the items.*}

{* set children variable *}
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}

<h2>{$node.name}</h2>

{* loop children and print name *}
{section name=Child loop=$children}
<ul>
<li>{$Child:item.name}</li>
</ul>
{/section}

{/let}

thanks
-neil

Nicolas Heiringhoff

Thursday 17 February 2005 5:34:47 am

Hi Neil,

i think this should work:

<a href={$Child:item.url_alias |ezurl} >{$Child:item.name}</a>

nico

http://www.heiringhoff.de

Ɓukasz Serwatka

Thursday 17 February 2005 5:43:05 am

<a href={concat("/", $Child:item.url_alias )|ezurl} >{$Child:item.name}</a>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog