GuidPlugin

GUID Plugin

Generate GUID unique IDs

Syntax Rules

You Type You Get Comment
%GUID_ID% B1DC012A-F05E-11F0-ADE0-F8BA3970D2BF default is string type
%GUID_ID{type="str"}% B1DC16F6-F05E-11F0-87E9-89A60F7120D3 string representation
%GUID_ID{type="bin"}% ܱ^ðð‰çžŸ3 6v binary representation
%GUID_ID{type="hex"}% 0xB1DC245CF05E11F0ADC0A20E8518C91E hex
%GUID_ID{type="b64"}% tincsV7w8BGPgY2Kaxzjrg== 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)
    • Set DEBUG = 0

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%: B1DC0B2A-F05E-11F0-9707-EF3E2B500706
    • %GUID_ID{type="str"}%: B1DC2ED4-F05E-11F0-A03D-B15B5AF15FFF
    • %GUID_ID{type="bin"}%: Ú7ܱ^ðð§ô£e_Žt
    • %GUID_ID{type="hex"}%: 0xB1DC3D02F05E11F09E5EB15F87F5E115
    • %GUID_ID{type="b64"}%: AkLcsV7w8BGnneyDGhru3Q==

Plugin Info

Plugin Author: TWiki:Main.BruceDillahunty
Copyright: © 2010-2016, TWiki:Main.PeterThoeny, TWiki.org
© 2010-2016 TWiki:TWiki.TWikiContributor
License: GPL ( GNU General Public License)
Plugin Version: 2016-02-02 (V1.1)
Change History:
2016-03-02: TWikibug:Item7703: Doc fix
2010-10-31: TWikibug:Item6530: Doc fixes
25 Feb 2004: Initial version
CPAN Dependencies: CPAN:Data::UUID
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/GuidPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/GuidPluginDev
Related Topics: TWikiPreferences, TWikiPlugins