Forums / Setup & design / $module_result.content sort order
arthur foelsche
Friday 18 April 2003 8:24:08 am
Does anyone know where the sort order of {$module_result.content} is defined? It appears to sort by name by default and it would like to change it to sort by published. Thanks!
Arthur
Paul Borgermans
Saturday 19 April 2003 4:40:30 am
There are 2 issues here really. The default sort order is defined for the parent node (see the admin interface)
It depends also on the module/action being requested. You are probably looking at the pagelayout_*.tpl. That's for the global site layout. For content views (which generate the $module_result.content), you need to dig deeper in the design directories, for instance /design/demo/override/templates/node/view/ contains the templates you are lookign for in teh demo site.
See the documentation (and ezwiki pages) for more
Paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Saturday 19 April 2003 1:02:07 pm
Thanks for the reply. I was figuring that it would be more complex- of course its in the admin interface! Doh! Thanks for putting up with the newbie questions- its great that people are willing to answer!
thanks again!
arthur