Sorting objects automaticly like defined on the admin

Author Message

Rami Grossman

Sunday 23 January 2005 7:11:02 pm

How can I sort objects automaticly like I defined in the admin?

Some of my folders are sorted in the admin by priority, some by name, etc.
I want to create tree view sorted automaticly by what I defined in the admin for each folder.

I thought that if I will fetch objects with no sorting it will sort automaticly by what was defined in the admin. But I see its not like that.

Thanks!

Rami Grossman

Sunday 23 January 2005 7:45:18 pm

I succeeded!!!
fetch('content','list',hash(parent_node_id,$node.node_id,'sort_by',array($node.sort_array.0,$node.sort_array.1)))

Thanks anyway!
please put it in the documentation examples. It should be usefull.

Artturi Markko

Friday 08 June 2007 8:22:38 am

Hi,

Where did you place this code, please ?

Thanks

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