Jump to content

WireAction PageAction base classes for modules


hellomoto
 Share

Recommended Posts

I want to write a quick little module that regenerate all images in /site/assets/files/ on request. I figure I'll just have a button on the module configuration page to run the script. So do I start it out like so?:

class ImgRegen extends WireData implements Module {}

singular=true, autoload=false. Sound right so far? Then how do I add this button to the config page to run the script? Need I make it a native PW field, since it doesn't store any data? Thank you all 

Link to comment
Share on other sites

  • 4 weeks later...

This topic has just been moved to Module/Plugin Development subforum. Please post any questions about module development here, the main Modules/Plugins area is mainly dedicated to module support threads. Thanks!

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...