• 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?

tyteen4a03

Well-known member
#1
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)?
 

digitalpoint

Well-known member
#3
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.
 

tyteen4a03

Well-known member
#4
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.
Ah, thanks. Was wondering all the time.