Forums / General / Sorting fetch

Sorting fetch

Author Message

Bjarte Lunde

Friday 30 July 2004 6:00:35 am

When you specify sort_by, $node.sort_array does it get the setting from the folder you're fetching from, or the one the template is in?

Example.. I have an override template for node id 2 and want to fetch items from node id 82, but the sorting is wrong...

Ole Morten Halvorsen

Monday 16 August 2004 7:23:49 am

$node.sort_array

is the sort method of your current node. If you are on /content/view/full/2 it will get the sort_array from the root folder. So in order to change your sort_array you must edit your root folder.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578