JSPWiki logo
Main page
About
News
Recent Changes
WikiEtiquette

Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences


Referenced by
JSPWikiTags




JSPWiki v2.2.14-beta


[RSS]

PluginTag


Difference between current version and current version:
At line 1 added 38 lines.
Allows you to insert any of the [JSPWikiPlugin]s directly into the template.
----
!Usage
{{{
<wiki:Plugin plugin="<plugin class>" args="<argument string>">
<optional plugin body>
</wiki:Plugin>
}}}
!Parameters
;__plugin__: The fully-fledged class name of the plugin. If the plugin is one of the standard plugins that come with the JSPWiki distribution OR it's package name has been added to jspwiki.properties (see jspwiki.plugin.searchPath), then you can use also the class name directly.
;__args__: The argument string to the plugin, as if you were giving it on the page itself.
To include a body to the plugin, include it in the body of the tag.
!Example
{{{
<wiki:Plugin plugin="Counter" args="name='foo'" />
}}}
Inserts the [CounterPlugin], with its name set to 'foo'.
{{{
<wiki:Plugin plugin="FooBar" args="name='foo'">
I am body text.
</wiki:Plugin>
}}}
Inserts the ~FooBar plugin, with the arguments "name" set to "foo", and the plugin body set to "I am body text".
----
Back to [JSPWikiTags].

Back to PluginTag, or to the Page History.