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

Specify which tab the page should show as selected in ACP


Well-known member
I have a custom page under the Users tab in the ACP. How do I set it so the admin panel will show the Users tab sidebar when the custom page is shown?

Chris D

XenForo developer
Staff member
By custom page, I assume you mean you have a custom route because if it used the users route, you should get that for free.

With that in mind, take a look at how the Users route selects the tab:
return $router->getRouteMatch('XenForo_ControllerAdmin_User', $action, 'users');
The third param there is "major section" which dictates which navigation tab is selected.

There's also a way to override this in your controller if you're doing something a bit different to what I'm thinking you're doing.