<<O>> Difference Topic TWikiPlugins (r1.18 - 03 Dec 2001 - MikeMannix?) |
Line: 1 173 to 1 173 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
Plugins Preferences <If user settings are needed, explain... Entering valuse works exactly like TWikiPreferences and WebPreferences: six (6) spaces and then:>" | |||||||
> > |
| |||||||
Line: 209 to 208 | ||||||||
Deleted: | ||||||||
< < |
-- MikeMannix - 01 Sep 2001 | |||||||
Line: 210 to 210 | ||||||||
Added: | ||||||||
> > |
-- MikeMannix - 03 Dec 2001 |
<<O>> Difference Topic TWikiPlugins (r1.17 - 28 Sep 2001 - MikeMannix?) |
<<O>> Difference Topic TWikiPlugins (r1.16 - 18 Sep 2001 - MikeMannix?) |
Line: 1 10 to 1 10 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
You can add Plugins to extend TWiki's functionality, without altering the core program code. With a plug-in approach, you can: | |||||||
> > |
You can add Plugins to extend TWiki's functionality, without altering the core program code. A plug-in approach lets you: | |||||||
Line: 16 to 16 | ||||||||
Changed: | ||||||||
< < |
Everything to do with TWiki Plugins - demos, new releases, downloads, development, general discussion - is available at TWiki.org, in the TWiki: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. | |||||||
Line: 22 to 22 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 24 to 24 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 26 to 26 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 54 to 54 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 58 to 58 | ||||||||
Changed: | ||||||||
< < |
Ideally, after you've installed a Plugin, just read the instructions and you're set. In fact, some Plugins require additional settings or offer extra options that you can modify on Preferences pages. You may want to make a Plugin available only in certain webs, or temporarily disable it. And having to list all available Plugins will probably come up. You can handle all of these with simple procedures. | |||||||
> > |
When you finish installing a Plugin, you should be able to read the user instructions and go. In fact, some Plugins require additional settings or offer extra options that you have to select. Also, you may want to make a Plugin available only in certain webs, or temporarily disable it. And may want to list all available Plugins in certain topics. You can handle all of these management tasks with simple procedures. | |||||||
Line: 84 to 84 | ||||||||
Changed: | ||||||||
< < |
DEMO: Active Plugin Variables | |||||||
> > |
DEMO: Automatically List Active Plugins Using Variables | |||||||
Line: 86 to 86 | ||||||||
Changed: | ||||||||
< < |
%ACTIVATEDPLUGINS% | |||||||
> > |
Using %ACTIVATEDPLUGINS% : | |||||||
Line: 89 to 89 | ||||||||
Changed: | ||||||||
< < |
% | |||||||
> > |
Using % : | |||||||
Line: 128 to 129 | ||||||||
Added: | ||||||||
> > |
||||||||
Line: 166 to 167 | ||||||||
Changed: | ||||||||
< < |
Syntax Rules: Describe any special text formatting that will be rendered. | |||||||
> > |
Syntax Rules: <Describe any special text formatting that will be rendered.>" | |||||||
Line: 168 to 169 | ||||||||
Changed: | ||||||||
< < |
MyFirstPlugin Settings: Description and settings for custom Plugin %VARIABLES%, and those required by TWiki. | |||||||
> > |
MyFirstPlugin Settings: <Description and settings for custom Plugin %VARIABLES%, and those required by TWiki.>" | |||||||
Line: 170 to 171 | ||||||||
Changed: | ||||||||
< < |
Plugins Preferences work exactly like TWikiPreferences and WebPreferences: six (6) spaces and then:
| |||||||
> > |
Plugins Preferences <If user settings are needed, explain... Entering valuse works exactly like TWikiPreferences and WebPreferences: six (6) spaces and then:>"
| |||||||
Line: 173 to 174 | ||||||||
Changed: | ||||||||
< < |
How-to Instructions: Step-by-step set-up guide, user help, whatever it takes to install and run, goes here. | |||||||
> > |
How-to Instructions: <Step-by-step set-up guide, user help, whatever it takes to install and run, goes here.>" | |||||||
Line: 175 to 176 | ||||||||
Changed: | ||||||||
< < |
Test Example: Include an example of the Plugin in action: if it works, the installation was a success! | |||||||
> > |
Test Example: <Include an example of the Plugin in action: if it works, the installation was a success!>" | |||||||
Line: 177 to 178 | ||||||||
Changed: | ||||||||
< < |
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. | |||||||
> > |
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.>" |
<<O>> Difference Topic TWikiPlugins (r1.15 - 16 Sep 2001 - MikeMannix?) |
Line: 1 83 to 1 83 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 162 to 162 | ||||||||
Changed: | ||||||||
< < |
OUTLINE: Doc Topic Contents | |||||||
> > |
OUTLINE: Doc Topic Contents | |||||||
Line: 207 to 207 | ||||||||
Changed: | ||||||||
< < |
-- PeterThoeny? - 14 Sep 2001 | |||||||
> > |
-- PeterThoeny - 14 Sep 2001 |
<<O>> Difference Topic TWikiPlugins (r1.14 - 15 Sep 2001 - MikeMannix?) |
Line: 1 6 to 1 6 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
Plugin use and development; about the Plugin API. | |||||||
> > |
Plug-in enhanced feature add-ons, with a Plugin API for developers | |||||||
Line: 10 to 10 | ||||||||
Changed: | ||||||||
< < |
You can add Plugins to greatly extend TWiki's functionality, without alering the program core. With a plug-in approach, you can: | |||||||
> > |
You can add Plugins to extend TWiki's functionality, without altering the core program code. With a plug-in approach, you can: | |||||||
Line: 26 to 26 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 40 to 40 | ||||||||
Changed: | ||||||||
< < |
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.
| |||||||
> > |
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.
| |||||||
Line: 42 to 42 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 50 to 50 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 54 to 54 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 64 to 64 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 68 to 68 | ||||||||
Changed: | ||||||||
< < |
Plugin execution order in TWiki is determined by searching Plugin topics in a specific sequence: First, full web.topicname name, if specified in INSTALLEDPLUGINS ; next, the TWiki web is searched; and finally, the current web.
| |||||||
> > |
Plugin execution order in TWiki is determined by searching Plugin topics in a specific sequence: First, full web.topicname name, if specified in INSTALLEDPLUGINS ; next, the TWiki web is searched; and finally, the current web.
| |||||||
Line: 72 to 72 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 80 to 80 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 86 to 86 | ||||||||
Changed: | ||||||||
< < |
%ACTIVATEDPLUGINS% | |||||||
> > |
%ACTIVATEDPLUGINS% | |||||||
Line: 89 to 89 | ||||||||
Changed: | ||||||||
< < |
% | |||||||
> > |
% | |||||||
Line: 101 to 101 | ||||||||
Changed: | ||||||||
< < |
The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module.
| |||||||
> > |
The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module.
| |||||||
Line: 103 to 103 | ||||||||
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.
| |||||||
> > |
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.
| |||||||
Line: 105 to 105 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 109 to 109 | ||||||||
Changed: | ||||||||
< < |
In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module.
| |||||||
> > |
In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module.
| |||||||
Line: 111 to 111 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 115 to 115 | ||||||||
Changed: | ||||||||
< < |
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.
| |||||||
> > |
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.
| |||||||
Line: 117 to 117 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 119 to 119 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 122 to 122 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 137 to 137 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 141 to 141 | ||||||||
Changed: | ||||||||
< < |
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.
| |||||||
> > |
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.
| |||||||
Line: 147 to 147 | ||||||||
Changed: | ||||||||
< < |
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.
| |||||||
> > |
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.
| |||||||
Line: 183 to 183 | ||||||||
Changed: | ||||||||
< < |
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 ).
| |||||||
> > |
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 ).
| |||||||
Line: 186 to 186 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 197 to 197 | ||||||||
Changed: | ||||||||
< < |
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: | |||||||
> > |
You can release your tested, packaged Plugin to the TWiki community through the TWiki:Plugins web. All Plugins submitted to TWiki.org are available for download and further development in TWiki:Plugins. Publish your Plugin in three steps: | |||||||
Line: 200 to 200 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
<<O>> Difference Topic TWikiPlugins (r1.13 - 14 Sep 2001 - PeterThoeny?) |
Line: 1 16 to 1 16 | ||||||||
---|---|---|---|---|---|---|---|---|
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. | |||||||
Line: 24 to 24 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 86 to 86 | ||||||||
Changed: | ||||||||
< < |
%ACTIVATEDPLUGINS% | |||||||
> > |
%ACTIVATEDPLUGINS% | |||||||
Line: 89 to 89 | ||||||||
Changed: | ||||||||
< < |
% | |||||||
> > |
% | |||||||
Line: 97 to 97 | ||||||||
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. | |||||||
Line: 131 to 131 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 137 to 137 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 141 to 141 | ||||||||
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.
| |||||||
Line: 147 to 147 | ||||||||
Changed: | ||||||||
< < |
Copy 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.
| |||||||
> > |
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.
| |||||||
Line: 154 to 154 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 164 to 164 | ||||||||
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: | |||||||
Line: 168 to 168 | ||||||||
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. | |||||||
Line: 183 to 183 | ||||||||
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 ).
| |||||||
Line: 185 to 185 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 200 to 200 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 202 to 202 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 205 to 205 | ||||||||
Changed: | ||||||||
< < |
-- AndreaSterbini - 29 May 2001 -- MikeMannix - 01 Sep 2001 | |||||||
> > |
-- AndreaSterbini - 29 May 2001 -- MikeMannix - 01 Sep 2001 -- PeterThoeny? - 14 Sep 2001 |
<<O>> Difference Topic TWikiPlugins (r1.12 - 07 Sep 2001 - MikeMannix?) |
<<O>> Difference Topic TWikiPlugins (r1.11 - 02 Sep 2001 - AndreaSterbini?) |
Line: 1 120 to 1 120 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 142 to 143 | ||||||||
Added: | ||||||||
> > |
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.
|
<<O>> Difference Topic TWikiPlugins (r1.10 - 02 Sep 2001 - MikeMannix?) |
Line: 1 6 to 1 6 | ||||||||
---|---|---|---|---|---|---|---|---|
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. | |||||||
Line: 8 to 8 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
OverviewYou can add Plugins to greatly extend TWiki's functionality, without alering the program core. With a plug-in approach, you can:
| |||||||
Line: 12 to 16 | ||||||||
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.
| |||||||
Line: 24 to 38 | ||||||||
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. | |||||||
Line: 26 to 40 | ||||||||
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.
| |||||||
Line: 28 to 42 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 31 to 45 | ||||||||
Changed: | ||||||||
< < |
Preinstalled Plugins | |||||||
> > |
On-Site Pretesting | |||||||
Line: 33 to 47 | ||||||||
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: | |||||||
Line: 35 to 49 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 37 to 54 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 39 to 55 | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Line: 79 to 95 | ||||||||
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 | |||||||
Line: 81 to 98 | ||||||||
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. | |||||||
Line: 83 to 100 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
Available Core Functions | |||||||
Line: 85 to 102 | ||||||||
Changed: | ||||||||
< < |
Creating Plugins | |||||||
> > |
The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module.
| |||||||
Line: 88 to 104 | ||||||||
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.
| |||||||
Line: 90 to 106 | ||||||||
Changed: | ||||||||
< < |
Anatomy of a Plugin | |||||||
> > |
| |||||||
Line: 92 to 108 | ||||||||
Changed: | ||||||||
< < |
A basic TWiki Plugin consists of two elements: | |||||||
> > |
Predefined Hooks | |||||||
Line: 94 to 110 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module.
| |||||||
Line: 97 to 112 | ||||||||
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. | |||||||
> > |
| |||||||
Line: 99 to 114 | ||||||||
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 | |||||||
Line: 101 to 116 | ||||||||
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.
| |||||||
Line: 104 to 118 | ||||||||
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. | |||||||
> > |
| |||||||
Line: 106 to 120 | ||||||||
Changed: | ||||||||
< < |
The lib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module.
| |||||||
> > |
| |||||||
Line: 108 to 123 | ||||||||
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.
| |||||||
> > |
| |||||||
Line: 110 to 124 | ||||||||
Deleted: | ||||||||
< < |
In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module.
| |||||||
Line: 112 to 126 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
Creating Plugins | |||||||
Line: 114 to 129 | ||||||||
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. | |||||||
Line: 119 to 135 | ||||||||
Added: | ||||||||
> > |
Anatomy of a PluginA basic TWiki Plugin consists of two elements:
| |||||||
Line: 180 to 206 | ||||||||
Changed: | ||||||||
< < |
-- MikeMannix - 26 Aug 2001 | |||||||
> > |
-- AndreaSterbini - 29 May 2001 -- MikeMannix - 01 Sep 2001 |
<<O>> Difference Topic TWikiPlugins (r1.9 - 01 Sep 2001 - MikeMannix?) |
<<O>> Difference Topic TWikiPlugins (r1.8 - 31 Aug 2001 - MikeMannix?) |
Line: 1 5 to 1 4 | ||||||||
---|---|---|---|---|---|---|---|---|
Deleted: | ||||||||
< < |
About Plugins |
<<O>> Difference Topic TWikiPlugins (r1.7 - 27 Aug 2001 - MikeMannix?) |
Line: 1 14 to 1 14 | ||||||||
---|---|---|---|---|---|---|---|---|
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 - including demos, new releases, downloads, and discussion - is available at TWiki.org, in the TWiki.org Plugins web. | |||||||
Line: 49 to 49 | ||||||||
Changed: | ||||||||
< < |
Installed Plugins can be toggled on or off, site-wide or by web, through TWikiPreferences and individual WebPreferences: | |||||||
> > |
Installed Plugins can be toggled on or off, site-wide or by web, through TWikiPreferences and individual WebPreferences: | |||||||
Line: 51 to 51 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 67 to 67 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 85 to 85 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 141 to 141 | ||||||||
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: | |||||||
Line: 143 to 143 | ||||||||
Changed: | ||||||||
< < |
Syntax Rules: explanation coming up | |||||||
> > |
Syntax Rules: Describe any special text formatting that will be rendered. | |||||||
Line: 178 to 178 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
<<O>> Difference Topic TWikiPlugins (r1.6 - 27 Aug 2001 - MikeMannix?) |
Line: 1 182 to 1 182 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
-- MikeMannix? - 26 Aug 2001 | |||||||
> > |
-- MikeMannix - 26 Aug 2001 |
<<O>> Difference Topic TWikiPlugins (r1.5 - 26 Aug 2001 - MikeMannix?) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
TWiki Plugins | |||||||
> > |
TWiki Plugins | |||||||
Line: 4 to 6 | ||||||||
Changed: | ||||||||
< < |
Plugins allow you to extend the syntax or functionality of TWiki. ... | |||||||
> > |
About Plugins | |||||||
Line: 6 to 8 | ||||||||
Changed: | ||||||||
< < |
TWikiPreferences has the list of installed plugins and activated plugins. | |||||||
> > |
TWikiPlugins allow you to add new features to TWiki without changing the core program. Using a plug-in approach means that you can: | |||||||
Line: 8 to 10 | ||||||||
Changed: | ||||||||
< < |
How to Create a Plugin | |||||||
> > |
| |||||||
Line: 10 to 14 | ||||||||
Changed: | ||||||||
< < |
under construction... ( check back at http://TWiki.org/cgi-bin/view/TWiki/TWikiPlugins ) | |||||||
> > |
Everything to do with TWiki Plugins - including demos, new releases, downloads, and discussion - is available at TWiki.org, in the TWiki.org Plugins web. | |||||||
Line: 12 to 16 | ||||||||
Changed: | ||||||||
< < |
How to Install a Plugin | |||||||
> > |
Installing Plugins | |||||||
Line: 14 to 19 | ||||||||
Changed: | ||||||||
< < |
under construction... ( check back at http://TWiki.org/cgi-bin/view/TWiki/TWikiPlugins ) | |||||||
> > |
Each TWikiPlugin comes with full documentation: step-by-step installation instructions, a detailed description of any special requirements, version details, and a working example for testing. | |||||||
Line: 16 to 21 | ||||||||
Changed: | ||||||||
< < |
Plugins under the hood | |||||||
> > |
Most Plugins can be installed in three easy steps, with no programming skills required:
| |||||||
Line: 18 to 26 | ||||||||
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. | |||||||
Line: 22 to 28 | ||||||||
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.
| |||||||
Line: 24 to 33 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
Pre-Installed Plugins | |||||||
Line: 26 to 35 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
TWiki comes with three Plugins as part of the standard installation. | |||||||
Line: 33 to 37 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 35 to 39 | ||||||||
Changed: | ||||||||
< < |
-- PeterThoeny? - 14 Jul 2001 | |||||||
> > |
Managing Installed PluginsIdeally, after you've installed a Plugin, just read the instructions and you're set. In fact, some Plugins require additional settings or offer extra options that you can modify on Preferences pages. You may want to make a Plugin available only in certain webs, or temporarily disable it. And having to list all available Plugins will probably come up. You can handle all of these with simple procedures.Set Preferences for Individual PluginsInstalled Plugins can be toggled on or off, site-wide or by web, through TWikiPreferences and individual WebPreferences:
web.topicname name, if specified in INSTALLEDPLUGINS ; next, the TWiki web is searched; and finally, the current web.
Plugin-specific settings are done in individual Plugin topics. Two settings are standard for each Plugin:
List Active Plugins AutomaticallyPlugin status variables let you list all active Plugins wherever needed. There are two list formats:
DEMO: Active Plugin VariablesTIP! To test new Plugins on your installation before making them public, you may want to use one of these two approaches:
Creating New PluginsWith 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.Anatomy of a PluginA basic TWiki Plugin consists of two elements:
TWiki Plugin APIThe 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. Thelib/TWiki/Func.pm implements ALL official Plugin functions. Plugins should ONLY use functions published in this module.
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.
In addition to TWiki core functions, Plugins can use predefined hooks, or call backs, listed in the lib/TWiki/Plugins/EmptyPlugin.pm module.
Customize the DefaultPlugin
Create a Plugin Module in PerlCopy 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.
Create a Plugin 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:
OUTLINE: Doc Topic Contents Package a Plugin for DistributionA minimum Plugin release consists of a Perl module with a WikiName that ends inPlugin , ex: YourPlugin.pm , and a documentation page with the same name(YourPlugin.txt ).
Publish a Plugin for General UseYou 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:
|
<<O>> Difference Topic TWikiPlugins (r1.4 - 14 Jul 2001 - PeterThoeny?) |
Line: 0 15 to 1 16 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
-- PeterThoeny? - 17 Feb 2001 | |||||||
> > |
Plugins under the hood
|
<<O>> Difference Topic TWikiPlugins (r1.3 - 14 Mar 2001 - PeterThoeny?) |
Line: 4 to 5 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
TWikiPreferences has the list of installed plugins and activated plugins. |
<<O>> Difference Topic TWikiPlugins (r1.2 - 04 Mar 2001 - PeterThoeny?) |
Line: 0 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
TWiki Plugins | |||||||
Line: 3 to 5 | ||||||||
Changed: | ||||||||
< < |
How to Create a Plugin | |||||||
> > |
How to Create a Plugin | |||||||
Line: 7 to 9 | ||||||||
Changed: | ||||||||
< < |
How to Install a Plugin | |||||||
> > |
How to Install a Plugin |
<<O>> Difference Topic TWikiPlugins (r1.1 - 17 Feb 2001 - PeterThoeny?) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Plugins allow you to extend the syntax or functionality of TWiki. ...
How to Create a Plugin
under construction... ( check back at http://TWiki.org/cgi-bin/view/TWiki/TWikiPlugins )
How to Install a Plugin
under construction... ( check back at http://TWiki.org/cgi-bin/view/TWiki/TWikiPlugins )
-- PeterThoeny? - 17 Feb 2001 |
Topic TWikiPlugins . { View | Diffs | r1.18 | > | r1.17 | > | r1.16 | More } output as: { } |
Revision r1.1 - 17 Feb 2001 - 08:35 - PeterThoeny? Revision r1.18 - 03 Dec 2001 - 10:17 - MikeMannix? |