Author Topic

Philippe VINCENT-ROYOL

Monday 04 April 2011 2:55:12 am

Comment67147

An idea could be :

 {def $articles1 = fetch( 'content', 'tree', hash( 'parent_node_id', 2,  'sort_by', array(array( 'priority', false() ), array('attribute',  false(), 'article/publish_date') ) ) )}
{def $articles2 = fetch( 'content', 'tree', hash( 'parent_node_id', 2,  'sort_by', array(array( 'priority', false() ), array('attribute', false(),  'layoutblock/publish_date') ) ) )}

 {def $mergeArray = $articles1}
 {set $mergeArray = $mergeArray|merge( $articles2 )} 

If you need to sort result, best way is to create an template operator in php which do this :)

Cheers

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe