Build your own Flux CMS plugin in an instant
Writing a new plugin in Flux CMS is an easy task, if you know how :) But now, it's even easier. I wrote a little script, which takes all the necessary tasks off you. Just call from the commandline:
php inc/bx/tools/generate/plugin.php
give the plugin a name and the script will generate the following files:
inc/plugins/yourplugin.php
themes/{folder}/yourplugin.xsl
data/yourplugin/.configxml
And you can start coding (and directly testing it with calling http://example.org/yourplugin/)
But it can more than that. If you already have a database table with data, which the plugin should use, you can tell the installer that (without the table prefix). It will then automatically create the necessary dbforms2 XML document (in the dbforms2/ directory), so that you can directly start editing the data with dbforms2 (just call it with http://example.org/admin/dbforms2/tablename/). The example XSLT and the plugin also uses then this DB data, outputs it as overview and in detail view.
Notice: The table needs to have the correct tablePrefix (bxcms_ by default) and a columns named "id".
Hope that helps in creating new plugins and getting started faster with Flux CMS.
Update: I made a little screencast about setting the db-table up, creating the plugin and editing the data with dbforms2 (there's no audio, btw :) )
Comments
add a comment
This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!
