GUID Plugin

Generate GUID unique IDs

Syntax Rules

You Type You Get Comment
%GUID_ID% 521CDC78-8015-11F0-A0C6-D32E0008FA7E default is string type
%GUID_ID{type="str"}% 521D329A-8015-11F0-9091-FEBC49A98DE4 string representation
%GUID_ID{type="bin"}% *9R€ð®Åø`dí binary representation
%GUID_ID{type="hex"}% 0x521D3F4C801511F0BC7D93E14EFB4EAB hex
%GUID_ID{type="b64"}% WkUdUhWA8BGJ6anFgm1Skw== 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 = 1

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%: 521D2980-8015-11F0-B1D6-A97D8E6A6C75
    • %GUID_ID{type="str"}%: 521D4B2C-8015-11F0-99C9-F4C967EC4A1A
    • %GUID_ID{type="bin"}%: ŽRR€ð¼<ñë!Ô.
    • %GUID_ID{type="hex"}%: 0x521D5888801511F0B882E0360C89DFB6
    • %GUID_ID{type="b64"}%: gl4dUhWA8BG4SbIwySwf9A==

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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2024-07-05 - EmielVanRiel
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.GuidPlugin.