GUID Plugin
Generate GUID unique IDs
Syntax Rules
You Type |
You Get |
Comment |
%GUID_ID% |
%GUID_ID% |
default is string type |
%GUID_ID{type="str"}% |
%GUID_ID{type="str"}% |
string representation |
%GUID_ID{type="bin"}% |
%GUID_ID{type="bin"}% |
binary representation |
%GUID_ID{type="hex"}% |
%GUID_ID{type="hex"}% |
hex |
%GUID_ID{type="b64"}% |
%GUID_ID{type="b64"}% |
base64 |
GuidPlugin Global Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, for example,
%GUIDPLUGIN_SHORTDESCRIPTION%
- One line description, shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Generate GUID unique IDs
- Debug plugin: (See output in
data/debug.txt
)
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
- Download the package from the plugin home on twiki.org (see below)
- Put them as follows
File: | Description: |
data/TWiki/GuidPlugin.txt | Plugin topic |
lib/TWiki/Plugins/GuidPlugin.pm | Plugin Perl module |
- Test if the plugin is correctly installed:
- %GUID_ID%: %GUID_ID%
- %GUID_ID{type="str"}%: %GUID_ID{type="str"}%
- %GUID_ID{type="bin"}%: %GUID_ID{type="bin"}%
- %GUID_ID{type="hex"}%: %GUID_ID{type="hex"}%
- %GUID_ID{type="b64"}%: %GUID_ID{type="b64"}%
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins