
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| On this page:  
 TWiki Plugins | ||||||||
| Line: 108 to 108 | ||||||||
| In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pmmodule. | ||||||||
| Deleted: | ||||||||
| < < | 
 | |||||||
| 
 | ||||||||
| Added: | ||||||||
| > > | 
 | |||||||
| Plugin Version Detection | ||||||||
| Line: 146 to 146 | ||||||||
| Creating the Perl Module | ||||||||
| Changed: | ||||||||
| < < | Copy file lib/TWiki/Plugins/EmptyPlugin.pmto<name>Plugin.pm.EmptyPlugin.pmcontains no executable code, so it does nothing, but it's ready to be used. Customize it. Refer to the Plugin API specs for more information. | |||||||
| > > | Copy file lib/TWiki/Plugins/EmptyPlugin.pmto<name>Plugin.pm. TheEmptyPlugin.pmmodule contains mostly empty functions, so it does nothing, but it's ready to be used. Customize it. Refer to the Plugin API specs for more information.
If your Plugin uses its own modules and objects, you must include the name of the Plugin in the package name. For example, writePackage MyFirstPlugin::Attrs;instead of justPackage Attrs;. Then call it using:use TWiki::Plugins::MyFirstPlugin::Attrs; $var = MyFirstPlugin::Attrs->new(); | |||||||
| Writing the Documentation TopicThe Plugin documentation topic contains usage instructions and version details. It serves the Plugin files as FileAttachments for downloading. (The doc topic is also included in the distribution package.) To create a documentation topic: | ||||||||
| Changed: | ||||||||
| < < | 
 | |||||||
| > > | 
 | |||||||
| 
 | ||||||||
| Changed: | ||||||||
| < < | 
 
 | |||||||
| > > | 
 
 | |||||||
| OUTLINE: Doc Topic Contents | ||||||||
| Changed: | ||||||||
| < < | Check EmptyPlugin on TWiki.org for the latest Plugin doc topic template. Here's a quick overview of what's covered: | |||||||
| > > | Check the Plugins web on TWiki.org for the latest Plugin doc topic template. Here's a quick overview of what's covered: | |||||||
| Syntax Rules: <Describe any special text formatting that will be rendered.>" | ||||||||
| Changed: | ||||||||
| < < | MyFirstPlugin Settings: <Description and settings for custom Plugin %VARIABLES%, and those required by TWiki.>" | |||||||
| > > | Example: <Include an example of the Plugin in action. Possibly include a static HTML version of the example to compare if the installation was a success!>" | |||||||
| Changed: | ||||||||
| < < | 
 | |||||||
| > > | Plugin Global Settings: <Description and settings for custom Plugin %VARIABLES%, and those required by TWiki.>" | |||||||
| Changed: | ||||||||
| < < | How-to Instructions: <Step-by-step set-up guide, user help, whatever it takes to install and run, goes here.>" | |||||||
| > > | 
 | |||||||
| Changed: | ||||||||
| < < | Test Example: <Include an example of the Plugin in action: if it works, the installation was a success!>" | |||||||
| > > | Plugin Installation Instructions: <Step-by-step set-up guide, user help, whatever it takes to install and run, goes here.>" | |||||||
| Plugin Info: <Version, credits, history, requirements - entered in a form, displayed as a table. Both are automatically generated when you create or edit a page in the TWiki:Plugins  web.>" | ||||||||
| Line: 205 to 215 | ||||||||
| 
 | ||||||||
| Changed: | ||||||||
| < < | -- PeterThoeny - 14 Sep 2001 | |||||||
| > > | -- PeterThoeny - 29 Jan 2003 | |||||||
| -- MikeMannix - 03 Dec 2001 | ||||||||
 
  Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.