This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » List of last updated objects

List of last updated objects

List of last updated objects

Friday 09 May 2003 11:13:59 am - 1 reply

Is there a way to generate a list of all objects of a specific class (and read out the modfication date for example) ?

Monday 12 May 2003 12:49:26 pm

Yes, this can be done with a fetch() template function. If you e.g. want to have a list of the 5 latest updated objects you can do something like:

{section name=Child loop=fetch('content','tree',hash(parent_node_id,42,limit,5,sort_by,array(array('modified',false()))))}
<a href={$Child:item.url_alias|ezurl}>{$}</a>

Replace 42 with the root ID of where you want to check for updates. 5 is the limit of objects to return.
This example does not filter on classes, this can be done with the class_filter_type and class_filter_array parameters.



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

36 542 Users on board!

Forums menu

Proudly Developed with from