JSPWiki logo
Main page
About
News
Recent Changes
WikiEtiquette

Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences

Edit this page


Referenced by
Counter
FAQGeneral
Image
IndexPlugin
InsertPage
Main
RecentChangesPlugin
ReferringPagesPlugin
TableOfContents
TextFormattingRules
...and 6 more




JSPWiki v2.2.14-beta


[RSS]

JSPWikiPlugins


Since v1.6.3 you can now define your own plugins. These are just simply Java classes that implement the com.ecyrd.jspwiki.plugin.WikiPlugin interface and can be found from somewhere in your class path. The plugins work so that when you write a special code on the Wiki page, the plugins are invoked and their output is inserted into the page, verbatim.

The form is:

[{INSERT <plugin class> WHERE <param1=value1>,<param2=value2>,...}]

You can also use a shortcut: instead of using [{INSERT com.ecyrd.jspwiki.plugin.RecentChangesPlugin you can also use [{INSERT RecentChangesPlugin}]. This works only with the plugins that come with JSPWiki, though.

In addition, you can now (since 1.9.30) omit even the "INSERT", so the shortest possible version for plugins becomes:

[{CurrentTimePlugin}]

If a parameter contains spaces, you can use single quotes (') around the parameter. Like this:

In the examples on the plugin documentation pages these forms are used interchangeably.

[{INSERT CurrentTimePlugin format='dd MM yyyy'}]

List of plugins included with JSPWiki




Go to top   Edit this page   More info...   Attach file...
This page last changed on 26-Mar-2006 00:48:48 EET by unknown.