[dokuwiki] Re: disabling plugins

Andreas Gohr wrote:
On Mon, 27 Feb 2006 19:44:28 +0100
"Esther Brunner" <wikidesign@xxxxxxxxx> wrote:

Would be useful - what about extending the plugin-base-class with a
function "disabled()" which would be called instead of "render()"
that simply replaces "$match" with nothing to remove the remaining
plugin-wiki-markup on pages the plugin is used - Ok - That would
imply dokuwiki knows which plugins are enabled/disabled (another
config-file?) to call the right function. Just an idea - don`t beat
me if it`s a dumb one ;-).
Good idea! Users should not see unwanted markup if a plugin is
disabled.

Hmm I think the user should see exactly the same when a plugin is disabled as when the plugin isn't installed. So I vote against ;-)

Andi
Yes. One of the reasons to disable a plugin, is because its causing markup problems, if you are still processing that markup, you've still got a problem.

I think a config variable or a marker file is better than renaming as that enables the parser/renderer to avoid loading disabled plugins, but still leaves them easy to load for other purposes - such as the plugin manager. ie, the current plugin loading mechanism can be given an extra parameter to load disabled plugins, default value would be not to load them.

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: