1. 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?

Discussion in 'XenForo Development Discussions' started by Jaxel, Jan 10, 2012.

  1. Jaxel

    Jaxel 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?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

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


    	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');
    nttruong and DRE like this.

Share This Page