Author Topic

Pascal France

Tuesday 06 October 2009 3:16:12 am

Comment54435

In the comments of the "list" fetch function, this example is done:

{set list_items=fetch_alias( children,hash( 'parent_node_id', $node.node_id,
                         'offset', $view_parameters.offset,
                         'sort_by', array( array( 'attribute', false(), 'news/sticky' ), array(  'attribute', false(), 'news/date')),
                         'limit', $page_limit ) ) }

wich is exactly the same code I wrote in my first post. But even using "fetch_alias" only the first sort (news/sticky) is taken into account.

Any idea ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish