Question
I've set some user-level preferences in my Twiki user page (Twiki.Main.ChrisToomey), but they're not being used when I view pages on our Twiki web. Here are the specific prefs. I've set in my page:
* SET WEBBGCOLOR = #999999
* SET HTTP_EQUIV_ON_VIEW = <style type="text/css">body {font-family: "Times New Roman", serif;}</style>
What might be preventing these from being used?
thanks,
Chris
Environment
| TWiki version: |
TWikiRelease01Feb2003 |
| TWiki plugins: |
None (?) |
| Server OS: |
FreeBSD 4.8 |
| Web server: |
Apache 1.3.27 |
| Perl version: |
5.00503 |
| Client OS: |
Win XP SP1 |
| Web Browser: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MultiZilla/1.6.3.0e |
--
TWikiGuest - 12 Aug 2004
Answer
You have to indent them with three (or six, nine, ...) spaces each, e.g.:
* Set ...
* Set ...
You should also make sure that the preferences you want to set/change are not declared unchangeable in
WebPreferences or
TWikiPreferences (e.g. Set FINALPREFERENCES ...).
--
ChristianKohl - 13 Aug 2004
Hi Christian, thanks for responding.
My user pref lines were properly indented, so that's not the cause. I've attached the site, web, and user prefs files, can you or somebody else have a look and see if you can find the problem?
thanks,
Chris
--
TWikiGuest - 13 Aug 2004
You are using SET - you should be using Set. The parser is case-sensitive.
--
CrawfordCurrie - 14 Aug 2004
I was in fact using "Set" for the WEBBGCOLOR pref., which wasn't and still isn't working either. I've changed to "Set" for HTTP_EQUIV_ON_VIEW but that didn't help.
thanks,
Chris
--
TWikiGuest - 16 Aug 2004
This is strange. I just tried
* Set WEBBGCOLOR = #FF0000
in my user topic (in my own TWiki) and it worked fine (it even works within
this topic ...).
I'm running the Bejing release as well and our Web- and Site-Preferences are nearly the same, too. Is you wiki on the Internet? If so, could you perhaps post the address?
Another idea: did you clear the browser cache, do a shift-reload etc.?
Also: Try expanding the WEBBGCOLOR variable (by enclosing it in %-signs like this: %WEBBGCOLOR%). It should then print the value of the variable. So you can at least find out whether the variable didn't get the new value or whether it did and the color isn't changed anyway.
--
ChristianKohl - 17 Aug 2004
Christian, no, we've got a private TWiki where I work.
I did as you suggested re: expanding the variables and they do in fact have the new values I've specified in my user prefs, so looks like it's a problem w/ the templates or CGI scripts not using them to override the default settings in the generated pages.
Chris
--
TWikiGuest - 17 Aug 2004