Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Plugins | ||||||||
Changed: | ||||||||
< < | TWikiPlugins allow you to add new features to TWiki without changing the core program. Using a plug-in approach means that you can: | |||||||
> > | Plugin use and development; about the Plugin API. | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | OverviewYou can add Plugins to greatly extend TWiki's functionality, without alering the program core. With a plug-in approach, you can:
| |||||||
| ||||||||
Changed: | ||||||||
< < | Everything to do with TWiki Plugins - including demos, new releases, downloads, and 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.org Plugins web.
Preinstalled PluginsTWiki comes with three Plugins as part of the standard installation.
| |||||||
Installing Plugins | ||||||||
Line: 21 to 35 | ||||||||
| ||||||||
Changed: | ||||||||
< < | Some Plugins need certain Perl modules to be pre-installed on the host system. Plugins may also use other resources, like graphics, other modules, applications, templates. In these cases, detailed instructions are in the Plugin documentation. | |||||||
> > | Special Requests: Some Plugins need certain Perl modules to be preinstalled on the host system. Plugins may also use other resources, like graphics, other modules, applications, templates. In these cases, detailed instructions are in the Plugin documentation. | |||||||
Changed: | ||||||||
< < | TWikiPlugin documentation pages are located at TWiki.org, in TWiki:Plugins web. Each Plugin has an doc topic (ex: SomePlugin ) and a separate development page. | |||||||
> > | Each Plugin has a standard release page, located in the TWiki:Plugins web at TWiki.org. In addition to the documentation topic (SomePlugin ), there's a separate development page. | |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | Preinstalled Plugins | |||||||
> > | On-Site Pretesting | |||||||
Changed: | ||||||||
< < | TWiki comes with three Plugins as part of the standard installation. | |||||||
> > | To test new Plugins on your installation before making them public, you may want to use one of these two approaches: | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Deleted: | ||||||||
< < |
| |||||||
Managing Plugins | ||||||||
Line: 76 to 92 | ||||||||
| ||||||||
Changed: | ||||||||
< < | TIP! To test new Plugins on your installation before making them public, you may want to use one of these two approaches: | |||||||
> > |
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. | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | Available Core Functions | |||||||
Changed: | ||||||||
< < |
Creating Plugins | |||||||
> > | The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module. | |||||||
Changed: | ||||||||
< < | With a reasonable knowledge of the Perl scripting language, you can create new Plugins or modify and extend existing ones. Basic plug-in architecture uses an Application Programming Interface (API), a set of software instructions that allow external code to interact with the main program. The TWiki Plugin API Plugins by providing a programming interface for TWiki. | |||||||
> > | DevALERT: If you use functions not in Func.pm , you run the risk of creating security holes. Also, your Plugin will likely break and require updating when you upgrade to a new version of TWiki. | |||||||
Changed: | ||||||||
< < | Anatomy of a Plugin | |||||||
> > |
| |||||||
Changed: | ||||||||
< < | A basic TWiki Plugin consists of two elements: | |||||||
> > | Predefined Hooks | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module. | |||||||
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: | ||||||||
< < | 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. | |||||||
> > | Plugin Version Detection | |||||||
Changed: | ||||||||
< < |
TWiki Plugin API | |||||||
> > | To eliminate the incompatibility problems bound to arise from active open Plugin development, a Plugin versioning system and an API GetVersion detection routine are provided for automatic compatibility checking. | |||||||
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. | |||||||
> > |
| |||||||
Changed: | ||||||||
< < | The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module. | |||||||
> > |
| |||||||
Changed: | ||||||||
< < | DevALERT: If you use functions not in Func.pm , you run the risk of creating security holes. Also, your Plugin will likely break and require updating when you upgrade to a new version of TWiki. | |||||||
> > |
| |||||||
Deleted: | ||||||||
< < | In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module. | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
Creating Plugins | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | With a reasonable knowledge of the Perl scripting language, you can create new Plugins or modify and extend existing ones. Basic plug-in architecture uses an Application Programming Interface (API), a set of software instructions that allow external code to interact with the main program. The TWiki Plugin API Plugins by providing a programming interface for TWiki. | |||||||
The DefaultPlugin Alternative
| ||||||||
Added: | ||||||||
> > | Anatomy of a PluginA basic TWiki Plugin consists of two elements:
| |||||||
Creating the Perl ModuleCopy file (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. | ||||||||
Line: 177 to 203 | ||||||||
| ||||||||
Changed: | ||||||||
< < | -- MikeMannix? - 26 Aug 2001 | |||||||
> > | -- AndreaSterbini? - 29 May 2001 -- MikeMannix? - 01 Sep 2001 |