This question about Using an extension: Answered

The last BGCOLOR parameter specified in the Topic overrides all previous ones before it. I want each box to have different background colors.

I have the following two "include" boxes in a topic. I want each to have a different color - however the second one BGCOLOR="#FFD8AA" always overrides the first one, and the boxes end up having the same color.

How do I make these show the color I have specified for BGCOLOR?

Warning
Can't INCLUDE '
"System.SnazzyRoundedCornersContrib"
TOPICTOSHOW="DatabaseTeam.MainPageInfo"
BORDERCOLOR="#929234"
BGCOLOR="#dcf1A5"
FLOAT="right"
WIDTH="350px"
HEIGHT="265px"
IDSHOW=""
SECTION=""', path is empty or contains illegal characters.

Warning
Can't INCLUDE '
"System.SnazzyRoundedCornersContrib"
TOPICTOSHOW="DatabaseTeam.MainPageInfo2"
BORDERCOLOR="#929234"
BGCOLOR="#FFD8AA"
FLOAT="right"
WIDTH="350px"
HEIGHT="250px"
IDSHOW=""
SECTION=""', path is empty or contains illegal characters.


I haven't used this contrib myself, but by inspection it looks like you should define a unique IDSHOW per TOPICTOSHOW otherwise the last css declaration for the background, with nothing to differentiate it from the others, overrides all the previous declarations.

-- DavidPatterson - 18 Nov 2010

That solved it. Thank you David. You're awesome!


Cool, setting status to Answered.

QuestionForm edit

Subject Using an extension
Extension SnazzyRoundedCornersContrib
Version Foswiki 1.0.8
Status Answered
Topic revision: r4 - 18 Nov 2010, DavidPatterson
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy