TWiki> TWiki Web>FallbackPlugin (02 Jun 2006, MeredithLesly? )EditAttach

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 TextFormattingRules 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, MeredithLesly?
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: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- MeredithLesly? - 01 Feb 2006

Topic revision: r2 - 02 Jun 2006 - 18:09:15 - MeredithLesly?
 
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
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.FallbackPlugin