Thursday 21 December 2006 4:31:25 am
I'm having trouble getting ezpublish to respect the priority when using fetch content tree: When I do:
{def $items=fetch( 'content', 'tree', hash( 'parent_node_id',$top_node_to_fetch,
sort_by, array('priority', true())
)))}
It doesn't sort each group of children but rather sorts the whole list after the initial search, destroying the hierarchy. What I would have expected is that, starting from the parent node, it sorts the subchildren, outputs the first item, and checks for children, then sorting those subchildren, etc, before output. Currently fetch-tree behaves exactly like list. All I want is to control the order of items within the tree. Any suggestions ?
|