Empty TWiki Plugin
Empty Plugin used as a template for new plugins
Introduction
This is an empty plugin. Use it as a template to build your own
TWikiPlugins. This plugin does nothing, but is ready to be used.
To create your own plugin:
- Copy file
lib/TWiki/Plugins/EmptyPlugin.pm
to <name>Plugin.pm
and customize the plugin. Add your own code; remove all handlers you do not plan to use.
- Create a
<name>Plugin
documentation topic in the TWiki web. Do so by visiting http://twiki.org/cgi-bin/view/Plugins/PluginPackageHowTo and starting a new topic to get the default plugin topic text (don't save the topic). Customize your plugin topic to your needs.
- See details in TWikiPlugins.
Syntax Rules
(none)
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, i.e.
%EMPTYPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Empty Plugin used as a template for new plugins
- Your own setting, for example:
- Debug plugin: ( TWiki sets
$debug
in your plugin. See output in data/debug.txt
.)
Plugin Installation Instructions
- This plugin is pre-installed, you do not need to install it.
Plugin Info
Related Topics: TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences