What's the best way to make an admin plugin?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
sloop

What's the best way to make an admin plugin?

Post by sloop »

Okay, my understanding of CMS's admin area is that a module can declare that it has admin capability, tell CMS what admin menu to add a link to that module's admin feature, and then you can respond to requests in DoAction() of your module.

Tell me if that's not a complete/correct understanding, please!

Based on this, I've created a class that lets you more easily make module-based admin plugins.  You drop the class into a relatively empty module subclass, and wire it into DoAdmin(), and it handles everything from there.  You can also subclass it to add new behaviors.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: What's the best way to make an admin plugin?

Post by Ted »

Yes, this is correct.  The menu item will then fire the "defaultadmin" action of your DoAction method.
Locked

Return to “Modules/Add-Ons”