adamsmasher
Active member
In XF 1.x you could include a template with a navigation item, e.g:
Is there a way to do this in XF 2.x? I can add a link and children to it to $navigationFlat and NavigationTree, but wondered if there was a way to do it specifically with a template instead.
Code:
$extraTabs['myNewLink'] = array(
'title' => 'Navigation Link',
'href' => 'somepage',
'selected' => ($selectedTabId == 'somepage'),
'position' => 'middle',
'linksTemplate' => 'myNewLinkTemplate',
'linksTitle' => 'somepage'
);
Is there a way to do this in XF 2.x? I can add a link and children to it to $navigationFlat and NavigationTree, but wondered if there was a way to do it specifically with a template instead.