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
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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /