Tags:
create new tag
, view all tags

Question

Is it possible to set plugin settings on a per web basis? I would like to configure the SectionalEditPlugin separately for a web, e.g. a different style setting for the Sandbox Web.

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- PeterLohmann - 06 Dec 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Yes. Prepend the plugin setting with the plugin name e.g. DEBUG in SectionalEditPlugin is set using SECTIONALEDITPLUGIN_DEBUG.

-- CrawfordCurrie - 07 Dec 2007

Sorry, but it does not work for me this way. In the global plugin preferences, there is a style set the following way: style="border: black thin dotted".

I appended the following to my Web:

    • Set SECTIONALEDITPLUGIN_STYLE = style="border: black thin solid"

and directly underneath a (Percent)SECTIONALEDITPLUGIN_STYLE(Percent) to show how it evaluated: style="border: black thin dotted"

So... this is not working

-- PeterLohmann - 14 Dec 2007

Example:

  • SECTIONALEDITPLUGIN_STYLE = style="border: black thin solid"
  • Expands to: style="border: black thin solid"
I have never looked at the code for SectionalEditPlugin to see if this variable exists, but this is the way plugin variables are normally defined.

-- CrawfordCurrie - 22 Dec 2007

Closing. Re-open if needed.

-- PeterThoeny - 02 Feb 2008

 
Change status to:
Topic revision: r6 - 2008-02-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.