This is a planned feature for VaultWiki 4.2.x which will not be out until later this year.
In XF2, you cannot do this with template modifications. In the AdminCP, you would use Setup > Navigation > Public navigation to set up your custom navigation group. Then, you would have to do some sort of Class Extension, where you extend the class \vw\vw\Pub\Controller\Wiki\Wiki and its method vwSetCustomStyle. If you look at the existing method, you can see how it does this for styles. For navigation, you would test the wiki context similarly based on your own rules and do something like:
Code:
public function vwSetCustomStyle($ctrl = null)
{
parent::vwSetCustomStyle($ctrl);
$this->setSectionContext($custom_nav_id);
}
Although it should still work, this approach will be moot in 4.2.x, where you can choose from your existing navigation groups from within the Edit view. The above approach is basically how we have it implemented in 4.2.x, although the changes are directly in the class without needing an extension.
Bookmarks