|
Sunday 02 July 2006 11:55:32 pm
Comment46301
I should just elaborate on that a little... If I was to use a fetch like:
{def $count=fetch('content', 'list_count', hash('parent_node_id', $m_menu.node_id) )
$sub_menu=fetch( 'content', 'list', hash( 'parent_node_id', $m_menu.node_id,
'sort_by', array( array( 'priority' ) ),
'class_filter_type', include,
'class_filter_array', array('folder') ) ) }
Where $m_menu.node_id is the id of the parent which I have already fetched. How can I take $count and find the last child? I know there must be a simple way to do this but as I have been away from the ez template code for a few months I'm finding it quite hard to get back into the groove! Any ideas are most welcome. Cheers!
Pardon me while I burst into flames...
|