This page (revision-1) was last changed on 2019-12-18 09:13 by UnknownAuthor

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 47 lines
The __[HelloWorldPlugin]__ (or just "HelloWorld" in use) is a [NeWikiPlugin] that provides a bit more than a minimal 'Hello World' plugin, providing a core set of features (such as parameter handling and authentication checking) as a demo and beginning point for plugin development.
!! Parameters
* __debug__ = '' 'true' '' | '' 'false' ''. When true, displays debugging level information. Defaults to false.
* __text__ = '' 'content' ''. An optional parameter to provide alternate "Hello World" text to the plugin.
No external dependencies (other than JSPWiki).
See also: [RestrictedHelloWorldPlugin]
----
! Tests
(NOTE: these tests may fail if the plugin has not been installed.)
{{{
[{HelloWorld}]
}}}
[{HelloWorld}]
{{{
[{HelloWorld debug='true' text='Bonjour tout le monde!'
this content is in the body. }]
}}}
[{HelloWorld debug='true' text='Bonjour tout le monde!'
this content is in the body. }]
----
! Notes
* Note that plugin invocation occurs more than once per page view, as plugins get parsed and invoked during permission checks and other calls for the page's HTML content. This in itself isn't a problem, but you should know that the plugin's execute() method gets called multiple times per page view, which whatever impact that may have.
* The plugin body is returned as a null unless it is separated from the first (parameter) line by at least one line of whitespace. This is a bug I thought fixed; apparently not.
----
[{Tag NeWikiPlugin}]