Forums / Developer / Finding subfolders / Comment42513
Olav Bringedal
Tuesday 08 March 2005 1:06:07 am
Thanks but i didn't get that to work, but it might as well be my impatience having the fault :)
However the following does work and only makes one hit on the DB:
{* Find last created news folder on top level. *} {let last=0 current_year=fetch('content', 'list', hash( 'parent_node_id', 73 , sort_by,array( 'published', false() ) , 'limit', 1, 'class_filter_type', 'include', 'class_filter_array', array( 'folder' ) ) )} siste måned: {$current_year.0.children[$current_year.0.children_count|dec]|attribute(show,2)} {/let}
Drawback is that it doesn't filter out other objects than folders from the parent folder.
Senior Consultant http://Umoe-consulting.no