|Plugin Label||Skeleton Plugin|
|Short Description||This is an empty container to demonstrate the basics of plugins coding.|
|Author||Charles du Jeu|
This plugin is an empty container for demonstrating how to create a simple plugin. It is disabled by default. If enabled, will simply add a button to the application toolbar that opens an external URL.
It covers standard features of plugins, included internationalisation and embedded images libraries. You should naturally read the developer doc in conjunction with the study of this plugin code to understand how it works!
It could be used in a middle term to automatically generate a new empty plugin, but for the moment if you duplicate this plugin to write your own, you'll have to grep the file names and plugin ids to make sure not to mess up with the original plugin.. For example, let's say your plugin is "action.gotomysite" :
- Rename the plugin folder
- Edit the manifest.xml file and replace skeleton by to gotomysite everywhere.
You can note the various way to use the i18n libraries depending on where you are in the application. Note that the "id" key of the message is prefixed by your i18n namespace, here we use 'skeleton.1', 'skeleton.2' because the i18n namespace is defined like that in the manifest.xml.
- In specific XML atributes, use simply the id of the message.
- Inside XML CDATA, use AJXP_MESSAGE[id] (will be replaced before the XML is output)
- In PHP, use the array provided by ConfService::getMessages()
|Show a custom footer div||Boolean||false|
|Display this content in the footer||Textarea||Your custom footer content|
|Button Target Url *|
|The target URL of the button that will be added to the application||String||http://www.ajaxplorer.info|