'sort_by' sort just the parent .. porblem !

Author Message

Selmah Maxim

Tuesday 24 January 2006 11:44:26 am

Hi ..

fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(22),sort_by,array( array( 'name',true() ))     ))

what the wrong here, its sort by name just the parents, but not the childs.. why ?!

Thanks in advance.

Kristof Coomans

Tuesday 24 January 2006 11:09:22 pm

You will only get the direct childs of $top_cat because it's a list fetch. If you want further descendants, try the tree fetch instead (http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/tree).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Selmah Maxim

Wednesday 25 January 2006 1:00:02 am

Same problem ... not sorting the child, maybe cuz of multible "{section}" ?!

I toke the code from here, for tree listing, with depth 1 ... what to do ?!

Selmah Maxim

Wednesday 25 January 2006 1:27:21 am

The sort_array is setted on 'published' , how to change this ?!

Selmah Maxim

Wednesday 25 January 2006 1:31:56 am

Oppss ....

I forget to say, that am trying to sort the childs from the same category... but even with tree didn`t work !

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.