Tags:
create new tag
, view all tags

Feature Proposal: A TWiki variable to check if a plugin is enabled

Motivation

creating topic templates that require specific TWiki plugins. I want to be able to check to see if the required plugin is installed and functioning. if it is not i want to see a missing plugin error.

Description and Documentation

I would like to see a built in variable something like %REQUIRESPLUGIN{ plugin="..." version="..." failure="warn,error" }%

Examples

Impact

Implementation

-- Contributors: JoeGainey - 04 Jun 2008

Discussion

You can already do this smile see the contexts in IfStatements - though we should add a plugin version 'value' to test against.

TablePlugin is %IF{ "context TablePluginEnabled" then="enabled" else="disabled" }%

-- SvenDowideit - 04 Jun 2008

I saw this, what would be the appropriate way to redirect to an error page if a plugin is not enabled?

-- JoeGainey - 05 Jun 2008

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-06-05 - JoeGainey
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.