nabo Posted February 24, 2017 Share Posted February 24, 2017 Hello I wrote a function that read files tree from a folder and rebuild the structure with PW templates. I tested it on a frontend template and it works perfectly. Now I'd like to call this function inside backend by simply clicking on a link on the main menu. How can I achieve this? thanks Link to comment Share on other sites More sharing options...
LostKobrakai Posted February 24, 2017 Share Posted February 24, 2017 You'd create a Process module, which then triggers your custom function. Process modules are the modules, which render any information in the backend / show up as menu items in the navigation. 2 Link to comment Share on other sites More sharing options...
szabesz Posted February 24, 2017 Share Posted February 24, 2017 8 hours ago, LostKobrakai said: You'd create a Process module A short into by Ryan: 1 Link to comment Share on other sites More sharing options...
adrian Posted February 24, 2017 Share Posted February 24, 2017 If you want an easier approach than creating a full process module (not that it's that hard), but you could create a custom AdminAction using this module: https://processwire.com/talk/topic/14921-admin-actions/ Note that it's very easy to hide all the other actions from the required role and add your new action to the flyout menu so they have quick access. 1 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