1. 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

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Mar 22, 2015.

  1. tyteen4a03

    tyteen4a03 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?
  2. Chris D

    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.
    Thomas.B and tyteen4a03 like this.

Share This Page