tyteen4a03 Well-known member Mar 22, 2015 #1 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?
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 Mar 22, 2015 #2 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: PHP: 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.
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: PHP: 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.