ncrossland Reply #1, 2 years, 3 months ago
I've done some work to add a new feature to make plugins easier and quicker to install. I've added some JS to the plugin add/edit page which parses the plugin code, looks for the doc_block (now used in the installer) and extracts details such as name, description, version, events, preferences, etc and populates the rest of the plugin form. If it's an update to an existing plugin, any existing config values which have been set aren't overwritten.
It utilises some of the existing JS for manipulating config params from the page, which frankly could do with a bit of updating, perhaps as part of the manager updates for 1.1. I wrote it in MooTools - my first proper go at using it. I have to say I still prefer jQuery...!
I'd appreciate any testing or feedback before I extend to snippets and modules.
I've checked in to 1.1 branch of SVN, and attached the single updated file /manager/actions/mutate_plugin.dynamic.php here.
It utilises some of the existing JS for manipulating config params from the page, which frankly could do with a bit of updating, perhaps as part of the manager updates for 1.1. I wrote it in MooTools - my first proper go at using it. I have to say I still prefer jQuery...!
I'd appreciate any testing or feedback before I extend to snippets and modules.
I've checked in to 1.1 branch of SVN, and attached the single updated file /manager/actions/mutate_plugin.dynamic.php here.