Tags:
create new tag
view all tags

Question

I have been following the documentation TWiki.InstantEnhancements and have been trying to change the color of background on pages. I have added into Main.TWikiPreferences:

  • Set =PAGEBGCOLOR = #CC6699

as required by the doc. I have also added the variable into the view.tmpl body BGCOLOR property:

But my pages are all still white. I have even edited the view.tmpl to explicitly set the value of bgcolor:

<body bgcolor="#CC6699">
but no change. I have even tried just:
   * Set PAGEBGCOLOR = #aaffcc 
still doesnt work

frown

Any ideas?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Gentoo Linux, kernel 2.6.15
Web server: Apache 2.0.55-r1
Perl version: 5.8.8-r2
Client OS: MS Windows XP
Web Browser: IE 6.029
Categories: Installation

-- TraceyMaule - 07 Jun 2006

Answer

Dependent on your point of view, it is either a bug in the documentation (not updated for template changes) or a bug in the default skin (PatternSkin). In any case, PAGEBGCOLOR was never built in pattern skin.

For now you should make color changes in a style sheet. See PatternSkinCssCookbook for help.

-- ArthurClemens - 07 Jun 2006

Follow-up in Bugs:Item2436. Committed change in SVN r.10501 (will probably be in release 4.0.3).

You will be able to set PAGEBGCOLOR in any topic.

-- ArthurClemens - 07 Jun 2006

ok thanks for that. I have now added style sheets called colors.css, style.css, and layout.css to one of my webs (WebLogis) under a topic CssTopic.

I have added the following directive to my TWiki.TWikiPreferences

      * #Set TWIKILAYOUTURL = %PUBURLPATH%/WebLogis/CssTopic/layout.css
      * #Set TWIKISTYLEURL = %PUBURLPATH%/WebLogis/CssTopic/style.css
      * #Set TWIKICOLORURL = %PUBURLPATH%/WebLogis/CssTopic/colors.css
and changed the following styles:
.patternViewPage .patternSearchResultsBegin {

   border-color:#ddd; /*BO8*/

   background-color:#ffff66

}

html body {

   background-color:#9900cc; /*BG1*/

   color:#9900cc; /*T1*/

}
But i still have no change to my body bgcolor. Am i missing something here?

-- TraceyMaule - 07 Jun 2006

I commented out my directives 'cause they were causing layout errors on this page smile

-- TraceyMaule - 07 Jun 2006

The change I made to implement PAGEBGCOLOR covers these styles:

html body, #patternPage, #patternBottomBar, .patternPreviewArea, #patternOuter, #patternTopBar { background-color:INSERT_YOUR_COLOR_HERE;}
#patternOuter {background-image:none;}

-- ArthurClemens - 07 Jun 2006

Hey thanks Arthur finally got it all sorted. it was #patternOuter i was after smile

-- TraceyMaule - 20 Jun 2006

Could you again explain which files have to be changed to realize Set PAGEBGCOLOR working? Thanks

-- AlexRaabe - 17 Aug 2006

These files have been changed in Revision 10501:

twiki/branches/TWikiRelease04x00/twikiplugins/PatternSkin/pub/TWiki/PatternSkin/colors.css
twiki/branches/TWikiRelease04x00/twikiplugins/PatternSkin/pub/TWiki/PatternSkin/style.css
twiki/branches/TWikiRelease04x00/twikiplugins/PatternSkin/templates/stylesdynamic.pattern.tmpl

-- ArthurClemens - 17 Aug 2006

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2006-08-17 - 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.