[dokuwiki] Re: disabling plugins

Hi all

> I just thought it is a bit annoying that plugins cannot be disabled. At
> > least not easily. Okay, you can move or remove the certain plugin
> > directory. But there is no plugin function with which it can be properly
> > disabled, which could be used by the plugin manager to make it even
> > easier ...


I used to rename plugins if I had to deactivate them for testing reasons.
For example syntax.php became _syntax.php and with components the folder
syntax/ became _syntax/.

I think it's enough if we can disable whole plugins through the plugin
manager, not individual components.

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.

-- Esther Brunner

Other related posts: