We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Plugins Web>VersionLinkPlugin (20 Apr 2003, PeterThoeny)
Tags:
attachments1Add my vote for this tag changes1Add my vote for this tag version_control1Add my vote for this tag create new tag
, view all tags

VersionLinkPlugin

[Development discussions in VersionLinkPluginDev]

This plugin makes it easy to link to a VERSION of an attached file vs. linking to the latest version (what ATTACHURLPATH does). I basically pinched the code that viewfile.pm uses to let you download versions of files from RCS.

Syntax Rules

%VERSIONLINK{ filename , version }%

Example: %VERSIONLINK{foo.c,1.1}%

VersionLinkPlugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = This plugin makes it easy to link to a VERSION of an attached file vs. linking to the latest version.

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip VersionLinkPlugin.zip in your twiki installation directory. Content:
File: Description:
data/TWiki/VersionLinkPlugin.txt Plugin topic
data/TWiki/VersionLinkPlugin.txt,v Plugin topic repository
lib/TWiki/Plugins/VersionLinkPlugin.pm Plugin Perl module
  • Check this topic here if the installation was successful
  • Test if the plugin is correctly installed:
    • %VERSIONLINK{foo.c,1.1}%

Plugin Info

Plugin Author: EdLott
Plugin Version: 08 Dec 2001
Change History: ?? ??? 2001: Added...
08 Dec 2001: Initial version
CPAN Dependencies:  
Other Dependencies:  
Perl Version: 5.0
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/VersionLinkPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/VersionLinkPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- EdLott - 08 Dec 2001

Topic attachments
I Attachment Action Size Date Who Comment
zipzip VersionLinkPlugin.zip manage 5.0 K 08 Dec 2001 - 23:22 EdLott  
Topic revision: r5 - 20 Apr 2003 - 00:33:01 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback