Tags:
create new tag
view all tags

SID-02194: Background colors for webs does not seem to work correctly

Status: Answered Answered TWiki version: 6.0.0 Perl version: perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-
Category: CategoryRendering Server OS: Linux Mint 16 Last update: 9 years ago

we have 8-ish webs. Their webbgcolors are set as follows: Manufactng cc6699 Fae ffcc66 HRS_Engineering 0ff00 Marketing 6699ff Main FFEFA6 Engineer 99ccff TWiki ffd8aa Sandbox b9daff

A web search in HRS_Engineering returned an ff00ff colored bar across the top, where it found stuff in that web.

In Engineering webhome, the background color is 99ccff for the string "You are currently in the Engineer web. The color code for this web is this background, so you know where you are", and it matches the above as well as the color shown in the site map.

The web home for HRS_Engineering has as the color "", as seen by this snippet from the html: span style='background : '>You are currently in the... The YouAreHere.txt file says: span style='background : %VAR{"WEBBGCOLOR" web="%INCLUDINGWEB%"}%'>You are currently

Main has no color coding handily displayed, so I'll skip that.

Manufactng shows the cc6699 background color fine.

Marketing shows the 6699ff background color fine.

Sandbox shows b9daff background color fine.

How do I get the background color for the HRS_Engineering web?? I've tried shortening the name to HRSEng (which also removed the _), no luck.

-- TWiki Guest - 2016-05-02

Discussion and Answer

Check your topic HRS_Engineering.WebPreferences. Your color has only five digits 0ff00 but should have six. In my browser, this shows as no visible background.

-- Harald Jörg - 2016-05-03

Apparently something happened in my copy/paste. here's the new setting:

Web specific background color: (Pick a lighter one of the StandardColors)

* Set WEBBGCOLOR = #01FF00

And it still shows up with no value. in fact, I hacked the YouAreHere.txt to say:

  • <span style='background : %VAR{"WEBBGCOLOR" web="%INCLUDINGWEB%"}%'>You are currently in the <nop>%INCLUDINGWEB% web. The color code for this web is this background, so you know where you are.
%VAR{"WEBBGCOLOR" web="%INCLUDINGWEB%"}% x "%INCLUDINGWEB%" %WEBBGCOLOR% </span>
  • <span style='background : %WEBBGCOLOR}%'>You are currently in the <nop>%INCLUDINGWEB% web. The color code for this web is this background, so you know where you are.
%VAR{"WEBBGCOLOR" web="%INCLUDINGWEB%"}% x "%INCLUDINGWEB%" %WEBBGCOLOR% </span>

And what i see is:

Notes:

You are currently in the HRS_Engineering web. The color code for this web is this background, so you know where you are. x "HRS_Engineering" #FFD8AA

You are currently in the HRS_Engineering web. The color code for this web is this background, so you know where you are. x "HRS_Engineering" #FFD8AA

With no background color.

-- Rusty Carruth - 2016-05-03

Ok, next try: look closely at you setting of WEBBGCOLOR in your various webs. If it renders like it does in your text above, then the case is clear. Instead of

* Set WEBBGCOLOR = #01FF00

...it should look like this:

  • Set WEBBGCOLOR = #01FF00

In raw edit mode, there are three blanks before the *, in WYSIWYG mode it needs to be a bullet list.

-- Harald Jörg - 2016-05-04

Perfect! Thanks! (The page itself said I should have 6 spaces and an *, so I thought that was what I needed. Obviously not.)

-- Rusty Carruth - 2016-05-04

Nice that it worked out. By the way, six spaces should do the trick as well (as any multiple of three). Three spaces give one level of indentation. I have to admit that I did not read what the page itself said smile

-- Harald Jörg - 2016-05-05

For anyone who searches and finds this topic I should mention: you do have to be a bit careful here. I thought I had 3 spaces, and didn't. And, when I went and tried to convert to a bullet list, more stuff was included as part of the stuff following the = than I wanted.

That is to say, it seemed that on certain lines, if I'd said:

  • foo = asdb
this is a comment about foo above.

then converted * foo = asdb into a bullet list, it appeared to include the comment as part of the assignment (so that foo was not simply 'asdb' but 'asdb this is a comment ...') Now, this may have been due to lack of sleep on my part, but when I fiddled around with the page and added blank lines and such in places where the assignment didn't seem to be doing the good thing - it started working right.

So, if your assignments aren't working right, Do what Harald said, and then if they STILL aren't working right try the other method Harald mentioned (switch to * instead of bullet, or vice versa), then try adding blank lines after the assignments that aren't right. It will work sooner or later. (I wish I'd paid more attention to what part didn't work and what I did so I could be more clear, sorry).

-- Rusty Carruth - 2016-05-05

(Amusing. I typed ' * foo = asdb (one newline) this is a comment about foo above' in the text entry box for the above, and you see what it did 'for' me - converted into a bullet list and 2 newlines.)

Anyway, I should have said last time - Thanks Harald!

Rusty

-- Rusty Carruth - 2016-05-05

Added tag 'variable' since this is actually a variable setting issue not a color rendering issue. I'll quit fiddling with this now, sorry!

-- Rusty Carruth - 2016-05-05

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Background colors for webs does not seem to work correctly
SupportCategory CategoryRendering
TWiki version 6.0.0
Server OS Linux Mint 16
Web server Server version: Apache/2.4.6 (Ubuntu)
Perl version perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-
Browser & version Firefox
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2016-05-05 - RustyCarruth
 
  • 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.