Navigation sub-tabs during forum search

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.

Add red:

Rich (BB code):
	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.
Top Bottom