Luc Chase
|
Sunday 30 September 2007 11:13:36 am
Same or similar prob in 3.9.3 Trying to use a sort array to display sticky news to top of list in fetch_alias. Seems that fetch_alias can't accept an array of arrays for the sort. This does not work... Empty variable name error.
{set
list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
offset, $view_parameters.offset,
sort_by, array ( array( attribute, false(), 'news/sticky' ), $node.sort_array),
limit, $page_limit ) ) }
This also does not work...
{set
list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
offset, $view_parameters.offset,
attribute_filter, $time_filter,
sort_by, array ( array( attribute, false(), 'news/sticky' ),array( 'published', false() ) ),
limit, $page_limit ) ) }
But, this works...
{set list_items=fetch_alias( children,hash( 'parent_node_id', $node.node_id,
'offset', $view_parameters.offset,
'sort_by', array(array( attribute,false(),'news/sticky' ), array('attribute', false(), 'news/date')),
'limit', $page_limit ) ) }
and this works...
{set
list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
offset, $view_parameters.offset,
sort_by, array( attribute, false(), 'news/sticky' ) ,
limit, $page_limit ) ) }
And this works...
{set
list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
offset, $view_parameters.offset,
sort_by, $node.sort_array,
limit, $page_limit ) ) }
The Web Application Service Provider
|