Softriva .com
|
Monday 19 February 2007 9:46:09 am
oooooops, sorry, I want to fetch the news1, news22, news14, etc.
|
Damarev .
|
Monday 19 February 2007 6:45:29 pm
This could be a simple solution:
{def $current_folder=fetch( 'content', list, hash( 'parent_node_id', 65,
'limit',1,
'attribute_filter', array( array( 'folder/name','=',$CurrentYear)) } {def $last_folder_id=$current_folder[0].node_id}
{def $latest_news=fetch( 'content', list, hash( 'parent_node_id', $last_folder_id,
'sort_by', array( 'published', false() ), } I know this is not the perfect approach, but it works.
|