Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Sarge (Testing)
Web server: Apache 1.3.29
Perl version: 5.8.3
Client OS: Windows 2000 SP4, Debian unstable
Web Browser: Firefox 1.0, Internet Explorer 6
Categories: Fatal error

-- 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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-01-26 - 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.