• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Not all preferences set in MAINWEB%.WIKIPREFSTOPIC% are honoured. These ones are:

   * %WIKIWEBMASTERNAME%
   * %FAVICON%
   * %WIKILOGOALT%
   * %WIKILOGOURL%
   * %WIKILOGOIMG%
and these ones are not (might not be an exhaustive list):
   * %WIKIWEBMASTER%
   * %WIKITOOLNAME

Test Case:

1. change the values of Main.TWikiPreferences

   * Set WIKITOOLNAME = wacky
   * Set WIKILOGOIMG = http://ubuntuguide.org/ubuntu.png
   * Set WIKILOGOURL = http://example.com/twiki/
   * Set WIKILOGOALT = go to the twiki homepage of example.com
   * Set FAVICON = http://ubuntuguide.org/favicon.ico
   
   * Set WIKIWEBMASTERNAME = Joe Blows
   * Set WIKIWEBMASTER = cypherpunks@mailinator.com

2. create Sandbox.PrefsTestOutput with:

testing that preferences set in [[Main.TWikiPreferences]] are actually being set.

   * %WIKIWEBMASTER%
   * %WIKIWEBMASTERNAME%
   * %FAVICON%
   * %WIKILOGOALT%
   * %WIKILOGOURL%
   * %WIKILOGOIMG%
   * %WIKITOOLNAME%
<verbatim>
   * %WIKIWEBMASTER%
   * %WIKIWEBMASTERNAME%
   * %FAVICON%
   * %WIKILOGOALT%
   * %WIKILOGOURL%
   * %WIKILOGOIMG%
   * %WIKITOOLNAME%
</verbatim>


If preferences are declared as FINAL in TWiki.TWikiPreferences then that's what they are - final. "FINAL" is a way of saying "this can't be overridden".

The only way to do what you want is to load local prefs first, declare all the prefs final, and only then load TWiki.TWikiPreferences to fill in the gaps. This makes more sense, so I have made the change, but note that you must declare your preferences as FINAL, or they will be overridden by TWiki.TWikiPreferences.

SVN 5889

CC


slaps forehead! argh, I completely forgot about final-prefs.

ItemTemplate
Summary not all preferences in MAINWEB%.WIKIPREFSTOPIC% being honoured
ReportedBy TWiki:Main.MattWilkie
Codebase

AppliesTo

Priority Low
CurrentState Closed
WaitingFor

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-08-21 - ThomasWeigert
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback