Question
It seems that the way
WEBBGCOLOR is evaluated using
= does not work in the current release tested, if the parameter =web misses quotes.
This was working in the previous releases.
It seems this happens due an evaluation issue with == (See Testcase below)
I put it into the categorie "Fatal Error" because i do not know all sideeffects, based on other evaluations where %VAR% is being used.
Maybe this topic should be renamed to reflect the root cause of the problem.
Testcase
Maybe better to view in
raw mode.
- The line below uses:
%INCLUDEWEB% (Default Setting of original TWiki Topic YouAreHere)
- You are currently in the Support web. The color code for this web is this background, so you know where you are.
- The line below uses:
"%INCLUDEWEB%"
- You are currently in the Support web. The color code for this web is this background, so you know where you are.
Extended Testcase (testing other variables)
- Setting of Sitemaplist (Not using quotes for
!%INCLUDEWEB%): on
- Setting of Sitemaplist (using quotes for
!"%INCLUDEWEB%"): on
Environment
--
WolfgangAlper - 24 Jan 2005
Answer
The
%VAR{"SITEMAPLIST" web="%INCLUDINGWEB%"}% syntax is the only one that is documented. Do not use the one without the quotes for the web parameter,
%VAR{"SITEMAPLIST" web=%INCLUDINGWEB%}%. I am not sure if the latter syntax worked in the past, but it certainly is not documented anywhere.
--
PeterThoeny - 25 Jan 2005
I see. However in the current distribution of TWiki as mentioned above, the following setting is being used in
YouAreJHere
<span style='background : %VAR{"WEBBGCOLOR" web=%INCLUDINGWEB%}%'>You are currently in the
%INCLUDINGWEB% web. The color code for this web is this background,
so you know where you are.</span>
Should i file a bugreport?
--
WolfgangAlper - 25 Jan 2005
Oh, you are right, it was incorrect and shipped with missing quotes. It has been fixed on 21 Sep 2004,
http://TWiki.org/cgi-bin/rdiff/TWiki/YouAreHere?render=debug
No need to file a bug report.
--
PeterThoeny - 26 Jan 2005