Lack of interest Set route sections for Search tabs

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Chris D

XenForo developer
Staff member
It's always bugged me somewhat that there's no navigational context to the search page/tab you're currently viewing.

I've always felt it would be appropriate for a relevant nav tab to be highlighted depending on the selected search tab.

I've just discovered this is quite easily possible:

http://xenmediagallery.com/search/?type=xengallery_media

As the controller object is available in XenForo_Search_DataHandler_Abstract::getSearchFormControllerResponse() You can very easily set the major/minor route sections:

PHP:
$controller->getRouteMatch()->setSections('xengallery');

So this suggestion is to a) make people more aware of this possibility and b) suggest that (as it's such a small change) this is done for the default search tabs for XenForo 1.2 and the search tabs for the next Resource Manager release.

The Search Everything tab should remain as it is.

Search Threads and Posts:
PHP:
$controller->getRouteMatch()->setSections('forums');

Search Profile Posts:
PHP:
$controller->getRouteMatch()->setSections('members');

Search Resources:
PHP:
$controller->getRouteMatch()->setSections('resources');
 
Last edited:
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
Top Bottom