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

Navigation sub-tabs during forum search

Discussion in 'Styling and Customization Questions' started by Neil E., Oct 10, 2012.

  1. Neil E.

    Neil E. Active Member

    XF navigation is really odd. It's as if parts of it were written at such different times that the functionality was changed "on the fly". In Forums, with the Forums tab highlighted, we have Mark/Search/Watched/What's New sub-tabs. If we are in Watched we can jump to What's New since the sub-tabs are available. If we are in Search, no sub-tabs are present.

    My next task is to make these sub-tabs available in Search. Is there a preferred method to do this? At the same time I want the Forums tab to stay highlighted since Search is effectively a subset of the Forums tab.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    Add red:

    	public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
    		$action = $router->resolveActionWithIntegerParam($routePath, $request, 'search_id');
    		return $router->getRouteMatch('XenForo_ControllerPublic_Search', $action, 'forums');
    This is also possible without a file edit by using this addon as described in point #3:


    This is an advanced application of this addon, but it should work well in this case.
  3. Neil E.

    Neil E. Active Member


    Thanks Jake, the template edit was simple, fast and easy to do. Gives the tabs a more consistent look.

Share This Page