alkahest Posted August 5, 2013 Share Posted August 5, 2013 Is there a proper way to do this? I'm using the Ergo admin theme, so should I just go in and edit the js used by the admin theme? Link to comment Share on other sites More sharing options...
diogo Posted August 5, 2013 Share Posted August 5, 2013 Yes, that's the proper way of doing it. Link to comment Share on other sites More sharing options...
dragan Posted August 6, 2013 Share Posted August 6, 2013 Can somebody explain how to do this? If I have only the default admin theme installed, do I have to edit wire/templates-admin/main.js ? If so, how / where / what exactly do I have to add / change? Link to comment Share on other sites More sharing options...
kongondo Posted August 6, 2013 Share Posted August 6, 2013 (edited) Can somebody explain how to do this? If I have only the default admin theme installed, do I have to edit wire/templates-admin/main.js ? If so, how / where / what exactly do I have to add / change? No. You never have to edit files in /wire/. On load, PW checks for admin templates in /site/templates-admin/. If it finds one it loads it. If it doesn't it loads the /wire/templates-admin/. So, copy the /templates-admin/ folder found in /wire/ to /site/ then edit the /site/templates-admin/xxxx.js/ to your heart's content (am not sure which .js file needs editing). When you upgrade PW it will not be overwritten Edit: Having said the above, to achieve what OP suggested, am not sure editing the templates-admin would help? The Tree is controlled by the file ProcessPageList.js and ProcessPageList.module which are in /wire/modules/Process/....I think? so, hmm, override? Edited August 6, 2013 by kongondo 1 Link to comment Share on other sites More sharing options...
alkahest Posted August 6, 2013 Author Share Posted August 6, 2013 Interestingly, the problem I was experiencing seemed to solve itself... It's probably because I was constantly clearing my cookies for a different project. The admin menu tabs do stay open if you're on submenu items and they achieve it through a cookie. But kongondo makes a good point. 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