Tags:
create new tag
view all tags

Feature Proposal: Override PluginsOrder in individual topics

I've some pages where I want SetGetPlugin to run before DBIQueryPlugin since there is a %GET% inside of by DBIQuery.

I've some other pages where I want DBIQueryPlugin to run before SetGetPlugin and SpreadSheetPlugin since I need to know how many lines are returned in the DBIquery (via %CALC{"$ROW(-1)"}%) and I want to set a variable which I can then include in an %IF% to adjust the error message that appears in %CHART%

So in LocalSite.cfg I've got:

   $TWiki::cfg{PluginsOrder} = 'SetGetPlugin, DBIQueryPlugin, SpreadSheetPlugin, ChartPlugin';

But in one page I would like this order to be:

   $TWiki::cfg{PluginsOrder} = 'DBIQueryPlugin, SpreadSheetPlugin, SetGetPlugin, ChartPlugin';

Is this possible, or is there another way to accomplish what I want?

Thanks

-- Contributors: TaitCyrus - 2011-06-01

Discussion

This is currently not possible. I see the use case. I recommend to submit an enhancement request where a preferences setting can overload the default plugins order defined in LocaSite.cfg.

-- PeterThoeny - 2011-06-02

Tait, I have seen that you want to change this dev question to a feature proposal. I changed the form to ChangeProposalForm. You can drive this proposal: Describe the spec in the topic above, and put your name in the committed developer field with date of commitment.

As for the DBIQueryPlugin, we found out elsewhere that this plugin does not use registerTagHandler to register tag handlers. In addition, this plugin uses the beforeCommonTagsHandler, e.g. this plugin takes action before other plugins, so it executes first even if you set it to be after SetGetPlugin in the $TWiki::cfg{PluginsOrder}. Proper fix is to fix the DBIQueryPlugin in a compatible way (compatibility might be a challenge).

-- PeterThoeny - 2011-06-14

In regards to DBIQueryPlugin, I recommend to follow-up in DBIQueryPluginDev.

-- PeterThoeny - 2011-06-14

Tait, this proposal lacks a spec. I recommend to document the spec on top, set the committed developer field and date of commitment field if you intend to work on it.

-- PeterThoeny - 2011-08-23

Ping one year later. I am parking this proposal. Anyone: feel tree to claim this as a committed developer to define the spec and implement this.

-- PeterThoeny - 2012-10-19

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2012-10-20 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.