Forums / Setup & design / Folderlist

Folderlist

Author Message

Kjell Inge Sandvik

Thursday 28 April 2005 2:37:30 pm

Hello forum!

I have made a folder with some links I wish to display, but nothing shows up! What is wrong with the code?

{let lenker=fetch('content','list', hash(parent_node_id,2))}
{section loop=lenker}
{$lenker.name}
{/section}

Sandvik Web & Data

Ɓukasz Serwatka

Friday 29 April 2005 5:15:23 am

Hi Kjell,

In your code is missing with $ near to lenker, you also can`t display name of object in section using variable name which store fetched nodes.

This is corrected code

{let lenker=fetch( 'content', 'list', hash( parent_node_id, 2 ) )}
{section var=child loop=$lenker}
    {$child.name}
{/section}
{/let}

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