Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
On this page:
TWiki Plugins | ||||||||
Line: 13 to 13 | ||||||||
| ||||||||
Changed: | ||||||||
< < | Everything to do with TWiki Plugins - demos, new releases, downloads, development, general discussion - is available at TWiki.org, in the TWiki.org Plugins web. | |||||||
> > | Everything to do with TWiki Plugins - demos, new releases, downloads, development, general discussion - is available at TWiki.org, in the TWiki:Plugins web. | |||||||
Preinstalled Plugins | ||||||||
Line: 21 to 21 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 83 to 83 | ||||||||
DEMO: Active Plugin Variables | ||||||||
Changed: | ||||||||
< < | %ACTIVATEDPLUGINS% | |||||||
> > | %ACTIVATEDPLUGINS% | |||||||
On this TWiki site, the active Plugins are: SpreadSheetPlugin, BackupRestorePlugin, ColorPickerPlugin, DatePickerPlugin, HeadlinesPlugin, JQueryPlugin, SetGetPlugin, TWikiSheetPlugin, TablePlugin, TagMePlugin, TwistyPlugin, WatchlistPlugin. | ||||||||
Changed: | ||||||||
< < | % | |||||||
> > | % | |||||||
You can use any of these active TWiki Plugins:
| ||||||||
Line: 94 to 94 | ||||||||
The TWiki Plugin API | ||||||||
Changed: | ||||||||
< < | The Application Programming Interface (API) for TWikiPlugins provides the specifications for hooking into the core TWiki code from your external Perl Plugin module. The Plugin API is new to the Production version of TWiki with the TWikiReleaseSpring2001. | |||||||
> > | The Application Programming Interface (API) for TWikiPlugins provides the specifications for hooking into the core TWiki code from your external Perl Plugin module. The Plugin API is new to the Production version of TWiki with the 01-Sep-2001 release. | |||||||
Available Core Functions | ||||||||
Line: 128 to 128 | ||||||||
The DefaultPlugin Alternative | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Anatomy of a PluginA basic TWiki Plugin consists of two elements: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
The Perl module can be a block of code that connects with TWiki alone, or it can include other elements, like other Perl modules (including other Plugins), graphics, TWiki templates, external applications (ex: a Java applet), or just about anything else it can call. | ||||||||
Changed: | ||||||||
< < | In particular, files that should be web-accessible (graphics, Java applets ...) are best placed as attachments of the YourPlugin topic. Other needed Perl code is best placed in a lib/TWiki/Plugins/YourPlugin/ directory. | |||||||
> > | In particular, files that should be web-accessible (graphics, Java applets ...) are best placed as attachments of the MyFirstPlugin topic. Other needed Perl code is best placed in a lib/TWiki/Plugins/MyFirstPlugin/ directory. | |||||||
The Plugin API handles the details of connecting your Perl module with main TWiki code. When you're familiar with the Plugin API, you're ready to develop Plugins.
Creating the Perl Module | ||||||||
Changed: | ||||||||
< < | Copy file (EmptyPlugin.pm ![]() <name>Plugin.pm EmptyPlugin.pm contains 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.pm to <name>Plugin.pm . EmptyPlugin.pm contains 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. | |||||||
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: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 161 to 161 | ||||||||
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 EmptyPlugin 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: | ||||||||
< < | YourPlugin Settings: Description and settings for your custom Plugin %VARIABLES%, and those required by TWiki. | |||||||
> > | MyFirstPlugin Settings: Description and settings for custom Plugin %VARIABLES%, and those required by TWiki. | |||||||
Plugins Preferences work exactly like TWikiPreferences and WebPreferences: six (6) spaces and then:
| ||||||||
Line: 180 to 180 | ||||||||
Packaging for Distribution | ||||||||
Changed: | ||||||||
< < | A minimum Plugin release consists of a Perl module with a WikiName that ends in Plugin , ex: YourPlugin.pm , and a documentation page with the same name(YourPlugin.txt ). | |||||||
> > | A minimum Plugin release consists of a Perl module with a WikiName that ends in Plugin , ex: MyFirstPlugin.pm , and a documentation page with the same name(MyFirstPlugin.txt ). | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Publishing for Public Use | ||||||||
Line: 197 to 197 | ||||||||
You can release your tested, packaged Plugin to the TWiki community through the TWiki:Plugins web, where all Plugins submitted to TWiki.org are available for download and further development discussion. Publish your Plugin in three steps:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | -- AndreaSterbini - 29 May 2001 -- MikeMannix - 01 Sep 2001 | |||||||
> > | -- AndreaSterbini - 29 May 2001 -- MikeMannix - 01 Sep 2001 -- PeterThoeny - 14 Sep 2001 |