• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add navtabs to different route?

Jaxel

Well-known member
#1
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
#2
The tab selection uses the major section which is set in the route. For example:

XenForo_Route_Prefix_Forums

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');
	}