Jump to content

Admin custom action


nabo
 Share

Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...