r2 - 21 Jun 2003 - 01:38:00 - People.smokrisYou are here: WikiGardens.com >  TWiki Web > RedirectPlugin

Redirect Plugin

This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.

I typically use this to make easy-to-type shortforms/acronyms of topic names. For example:

  • actual content appears under Main.LightweightDirectoryAccessProtocol
  • Main.LDAP contains just a redirect tag. Referencing Main.LDAP anywhere or entering it in the Go box takes one directly to Main.LightweightDirectoryAccessProtocol

Related Topics

Syntax Rules

  • Redirect to a topic within the web: %REDIRECT{"WikiWord"}%
  • Redirect to a topic in another web: %REDIRECT{"TWiki.WikiWord"}%
  • Redirect to any URL: %REDIRECT{"http://google.com/"}%

Caveat

  • Once you've added a redirect tag to a topic, you won't ever see the topic itself until you remove the tag. Therefore, to remove or change redirection, you will need to manually enter the appropriate URL to edit the topic.

Redirect Plugin Settings

    • Set SHORTDESCRIPTION = This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.
    • 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 ZIP file from the Plugin web (see below)
  • Unzip RedirectPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/RedirectPlugin.txt Plugin topic
    data/TWiki/RedirectPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/RedirectPlugin.pm Plugin Perl module
  • Test if the installation was successful (see above syntax notes)

Plugin Info

Plugin Author: TWiki:Main/SteveMokris
Plugin Version: 10 Aug 2006
Change History:  
10 Aug 2006: Ability to redirect to URL restored by TWiki:Main/ThomasWeigert. Also added support for URL parameters. Fixed a few bugs.
09 Jun 2006: Dakar port by TWiki:Main/MeredithLesley
20 Jun 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/RedirectPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/RedirectPluginDev
Creative Commons License This site is powered by the TWiki collaboration platformUnless otherwise noted, all content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Ideas, requests, problems regarding WikiGardens.com? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.RedirectPlugin
 

“My green thumb came only as a result of the mistakes I made
while learning to see things from the plant's point of view.”

~ H. Fred Ale