| Carlos Revillo
                                                                                                                             | Thursday 24 April 2008 3:12:45 pm 
                                                                 
I think it is not possible "by default" if you don't want to hack some Exponential code. So, i would do a new extension for this. maybe you can have a look at http://ez.no/Exponential/documentation/development/extensions.That is a good point to start.
 
Anyway, you can still hack Exponential to order recolected information, maybe by the the date that information was created or modifiedYou can have a look at kernel/infocollection/collectionlist.php and kernel/classes/informationcollection.php
 This class are perfectly documented by eZ crew. if you look at the code you will find  
/*!
     \static
     \param $creatorID       - optional, default false, limits the fetched set to a creator_id
     \param $contentObjectID - optional, default false, limits the fetched set of collection to
                               a specific content object
     \param $userIdentifier  - optional, default false, limits the fetched set to a user_identifier
     \param $limitArray      - optional, default false, limits the number of returned results
                               on the form:  array( 'limit' => $limit, 'offset' => $offset )
     \param $sortArray       - optional, default false, how to sort the result,
                               on the form: array( 'field', true/false ), true = asc
     \param $asObject        - optional, default true, specifies if results should be returned as objects.
      Fetches a list of information collections.
    */
    static function fetchCollectionsList( $contentObjectID = false, $creatorID = false , $userIdentifier = false, $limitArray  = false, $sortArray = false, $asObject = true )
    {
															   );
so, you can try to change the call to this function in the first file from  
$collections = eZInformationCollection::fetchCollectionsList( $objectID, /* object id */
                                                              false, /* creator id */
                                                              false, /* user identifier */
                                                              array( 'limit' => $limit,'offset' => $offset ) /* limit array */,
															
															   );
to something like 
$collections = eZInformationCollection::fetchCollectionsList( $objectID, /* object id */
                                                              false, /* creator id */
                                                              false, /* user identifier */
                                                              array( 'limit' => $limit,'offset' => $offset ) /* limit array */,
															  array('modified', false)
															   );
 ... and see what happens. |