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

How to make ACP page stick to current Tab?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Mar 20, 2013.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    How do I make it so that an option page on the Users tab, when accessed, won't jump back to the Options Tab (and instead show the Users tab as indicated)?
    Biker likes this.
  2. Biker

    Biker Well-Known Member

    Ugh. This irritates me to no end. Especially when working with user lists.
  3. digitalpoint

    digitalpoint Well-Known Member

    It's defined in the route. Check out the admin routes in library/XenForo/Route/PrefixAdmin/ directory. Open up "Cron.php" as an example... the 3rd parameter in the getRouteMatch() method is what you are looking for. The "cronEntries" value there corresponds to it's admin navigation entry (under Development tab in ACP), which is a sub-section of Tools. So that's how it knows to stay on the Tools section.
    Jake Bunce, tyteen4a03 and Jeremy like this.
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    Ah, thanks. Was wondering all the time.

Share This Page