Forums / Developer / List of last updated objects

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

List of last updated objects

Author Message

Ernst Roza

Friday 09 May 2003 2:13:59 am

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

Bård Farstad

Monday 12 May 2003 3:49:26 am

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}>{$Child:item.name}</a>
{/section}

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.

--bård

Documentation: http://ez.no/doc