Frank Vèssia Posted January 7, 2015 Share Posted January 7, 2015 Is there a way to have different "home page" after login into the PW admin? I'm creating a module with a dashboard and I would like to go directly there after I login into PW and not into /page Link to comment Share on other sites More sharing options...
renobird Posted January 7, 2015 Share Posted January 7, 2015 Do you want this for all users (except Superuser)? Also: Do you want to hide the page tree from those users, or just go to a different page at login? Link to comment Share on other sites More sharing options...
Frank Vèssia Posted January 7, 2015 Author Share Posted January 7, 2015 It's for the admins (superuser), other users access only in the front end. I just want a different page after login, in this dashboard I have a lot of stats about the site so it's cool the have these info right after login, having the page tree every time is not the best. Link to comment Share on other sites More sharing options...
horst Posted January 7, 2015 Share Posted January 7, 2015 (edited) If no other users are allowed to the Admin, one could use Diogos module I think: http://modules.processwire.com/modules/process-admin-custom-pages/ Edit: that was the wrong module, here is the right one: https://github.com/ocorreiododiogo/ProcessHomeAdmin Edited January 7, 2015 by horst 1 Link to comment Share on other sites More sharing options...
renobird Posted January 7, 2015 Share Posted January 7, 2015 Here's a quick module that should do what you need. http://pastebin.com/31xcBaFE 2 Link to comment Share on other sites More sharing options...
Frank Vèssia Posted January 7, 2015 Author Share Posted January 7, 2015 @renobird, awesome....I just used your hook directly in my module...so it's working fine. Thanks 2 Link to comment Share on other sites More sharing options...
renobird Posted January 7, 2015 Share Posted January 7, 2015 You need to save that as CustomAdminHomePage.module (or rename the class to whatever). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now