Add navtabs to different route?


Well-known member
I have a route to /portal/, it has it's own navlinks.

I now have a route to /articles/, how do I give this new route the portal navlinks? Without adding a newtab to the header of my website?

Jake Bunce

XenForo moderator
Staff member
The tab selection uses the major section which is set in the route. For example:


Rich (BB code):
	public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
		$action = $router->resolveActionWithIntegerOrStringParam($routePath, $request, 'node_id', 'node_name');
		$action = $router->resolveActionAsPageNumber($action, $request);
		return $router->getRouteMatch('XenForo_ControllerPublic_Forum', $action, 'forums');