Example of the code I used in my template
Code: Select all
<div id="menu_vert">
{menu template='simple_navigation.tpl' start_level='2' number_of_levels='1' collapse='1'}
</div>
Code: Select all
$curcontent =& $curnode->GetContent();
// if( !$curcontent ) {
$properparentpos = $this->nthPos($curcontent->Hierarchy() . '.', '.', intval($params['start_level']) - 1);
if ($properparentpos > -1)
{
$prevdepth = intval($params['start_level']);
$rootnode =& $hm->getNodeByHierarchy(substr($curcontent->Hierarchy(), 0, $properparentpos));
}
// }