Fallback Plugin

This plugin allows you to easily specify fallback topics and webs, which will be checked if the topic argument isn't found in the current web.

Syntax Rules

Argument Use Default required
topic the topic you're looking for none yes, but can just specify topic in quotes
othertopics other topic names to look for if topic isn't found none no
otherwebs other webs to look in besides the current one none no

Returns Web.Topic, where Web is the Web it was found in, Topic the name of the topic that was found.

ALERT! You really should provide either othertopics or otherwebs, or this tag is kinda useless. It will work, but what's the point?

Plugin Settings

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

  • One line description, is shown in the Text Formatting Rules topic:
    • Set SHORTDESCRIPTION = allows an easy way to specify fallback topics and webs to be checked if the topic argument isn't found in the current web.

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

Plugin Installation Instructions

  • This plugin is currently only in SVN. It may or may not remain only there.

Plugin Info

Plugin Author: TWiki:Main.MeredithLesly
Copyright: © 2006, Meredith Lesly?
License: GPL (GNU General Public License)
Plugin Version: 01 Feb 2006
Change History:  
02 Jun 2006: Original version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.6

Related Topics: TWiki Plugins, Developer Documentation Category, Admin Documentation Category, TWiki Preferences

-- Meredith Lesly? - 01 Feb 2006
Topic revision: r1 - 02 Jun 2006 - 18:09:15 - Meredith Lesly?
 
2picthead.jpg}
Back to Redbourn
Copyright © We make no guarantee of the correctness of the content of this site. All material on this collaboration platform is the property of Martin Cleaver and the contributing authors.