eZ Community » Forums » Developer » How to display the contents of a folder?
expandshrink

How to display the contents of a folder?

How to display the contents of a folder?

Sunday 22 July 2012 2:36:00 pm - 2 replies

regards
 I need to display a list of items in a folder in the footer, you have an idea as I can.

Modified on Tuesday 24 July 2012 4:16:04 pm by Edixon Rivera

Tuesday 24 July 2012 5:13:00 pm

Hi,

here's an exapmle :

 
 
{def  $folder=fetch('content', 'node', hash( 'node_id', <$node_id> ) ) }
 
{if gt($folder.children|count,0)}
       {foreach $folder.children as $children}
            {node_view_gui view=line content_node=$children}  
       {/foreach}
{/if}

regards.

Modified on Tuesday 24 July 2012 5:17:23 pm by Hicham ELG

Tuesday 24 July 2012 5:22:26 pm

Thanks for the reply

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu