Signature Plugin
This plugin supports a simple tag which appears as a button with the label given by the
SIGNATURELABEL
setting. When clicked, it is replaced by the text given in the
SIGNATUREFORMAT
setting (this is typically the name of the logged in user and the current date).
Syntax Rules
Insert the tag %SIGNATURE% anywhere in the topic, as many times as you like. Each such tag will create a signature button.
The following parameters are supported for the %SIGNATURE% tag.
Parameter: |
Description: |
Default: |
"name" |
The wiki name of a user or group or a list of users/groups. Only these users or members of these groups are allowed to sign here. |
|
"format" |
The signature format for this particular signature. The syntax is the same as for the setting variable SIGNATUREFORMAT . |
|
Plugin Settings
Plugin settings are stored as preferences variables. To reference
a plugin setting write
%<plugin>_<setting>%
, i.e.
%SIGNATUREPLUGIN_SHORTDESCRIPTION%
- Format of the signature line. The variables
$wikiusername
, $wikiname
, $username, and $date
can be used, indicating the WikiName of the logged in user prefixed with the user web, the WikiName of the logged in user, the login name of the logged in user, and the date of signing, respectively.
- Set SIGNATUREFORMAT = $wikiusername - $date
- Label of the signature button
- Set SIGNATURELABEL = Sign
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Supports electronic signatures
- Debug plugin: (See output in
data/debug.txt
)
Plugin Installation Instructions
- This plugin works only with TWiki 4 and beyond.
- Download the ZIP file from the Plugin web (see below)
- Unzip
SignaturePlugin.zip
in your twiki installation directory. Content:
File: |
Description: |
lib/TWiki/Plugins/SignaturePlugin.pm |
Plugin Perl module |
data/TWiki/SignaturePlugin.txt |
Plugin topic |
templates/oopsgeneric.pattern.tmpl_twiki40 |
Rename to templates/oopsgeneric.pattern.tmpl if you are using a TWiki 4.0 installation |
templates/oopsgeneric.tmpl_twiki40 |
Rename to templates/oopsgeneric.tmpl if you are using a TWiki 4.0 installation |
lib/bin/digisign |
Support script |
- Ensure that the script
lib/bin/digisign
is executable and authorized as desired.
- If installed correctly you should see a button with the label indicated by the setting below.
%SIGNATURE{name="TWikiAdminGroup"}%
Plugin Info
Related Topics: TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences
--
ThomasWeigert - 19 Nov 2006