List article

Author Message

enigmista enigmista

Friday 25 July 2003 2:53:51 am

Hi. I want list all item in a folder. I have created a class that have an itro a date and a name. I want list the lastest 5 i have done:
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}
{section name=Child loop=$children max=5}
<img src={"images/article.gif"|ezdesign} alt="" /> <a href={concat("/content/view/full/",$Child:item.node_id)|ezurl}>{$Child:item.name}</a><br />
{/section}
{/let}

but with it it will display not the last 5 and i want print the intro.. how i can do? tnx

Bjørn Kaarstein

Friday 25 July 2003 4:37:07 am

Try to put a limit in your fetch and sort by date...

{let
children=fetch('content','list',hash(parent_node_id,$node.node_id), limit,5,sort_by,array(array(published,false())))}

Regards Bjørn

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.