A plugin is defined to have three parts:
[{INSERT com.ecyrd.jspwiki.plugin.FunnyPlugin foo='bar' blob='goo' abcdefghijklmnopqrstuvw 01234567890}]The plugin class is "com.ecyrd.jspwiki.plugin.FunnyPlugin", the parameters are "foo" and "blob" (having values "bar" and "goo", respectively), and the plugin body is then "abcdefghijklmnopqrstuvw\n01234567890". The plugin body is accessible via a special parameter called "_body".
If the parameter "debug" is set to "true" for the plugin, JSPWiki will output debugging information directly to the page if there is an exception.
The class name can be shortened, and marked without the package. For example, "FunnyPlugin" would be expanded to "com.ecyrd.jspwiki.plugin.FunnyPlugin" automatically. It is also possible to define other packages, by setting the "jspwiki.plugin.searchPath" property. See the included jspwiki.properties file for examples.
Even though the nominal way of writing the plugin is
[{INSERT pluginclass WHERE param1=value1...}],it is possible to shorten this quite a lot, by skipping the INSERT, and WHERE words, and dropping the package name. For example:
[{INSERT com.ecyrd.jspwiki.plugin.Counter WHERE name='foo'}]is the same as
[{Counter name='foo'}]
Since 2.3.25 you can also define a generic plugin XML properties file per each JAR file.
Janne Jalkanen foo.css code Janne Jalkanen
Plugin can implement multiple interfaces to let JSPWiki know at which stages they should be invoked:
|
|
|
|