Tags:
create new tag
view all tags

Question

Is it possible to have a customised logo and CSS layout (I'm using pattern skin) for an individual web?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Skin

-- SueLocke - 18 Apr 2005

Answer

take a look at the WIKILOGOIMG, WIKILOGOURL, and WIKILOGOALT settings in TWikiPreferences; you can add new sets of these settings to each web's WebPreferences.

there is work underway for the next release at LogoPerWeb which doesn't "pervert" the use of the WIKILOGO variables.

-- WillNorris - 18 Apr 2005

Sorry I don't get it. Adding logo settings to the relevant web ala the TWikiPreferences platform settings doesn't work. Had tried that already. Must be something I'm missing. Is there an example someone has already done like this that I could have a look at?

-- SueLocke - 18 Apr 2005

Strange, cause it works even for individual topics (see LogoPerTopic), although %ATTACHURL% seems not to work properly on twiki.org.

-- FranzJosefSilli - 18 Apr 2005

If you have those variables listed in FINALPREFERENCES in TWikiPreferences it would appear not to work. Otherwise, what Franz describes works fine (for me, anyway)

-- CrawfordCurrie - 18 Apr 2005

Yes, you can. With css:

Create a css file for a web, for instance SandboxStyle.css for the Sandbox web, with a style for the twikiTopBar class:

.twikiTopBar {
   background-image:url(http://www.google.com/images/logo_sm.gif);
   background-repeat:no-repeat;
}
Attach the file to a topic, for instance TWiki.TWikiPreferences

In the WebPreferences (Sandbox.WebPreferences for the Sandbox style), point the USERSTYLEURL variable to this file:

   * Set USERSTYLEURL = %PUBURL%/TWiki/TWikiPreferences/SandboxStyle.css
You can override (over write) more styles, for instance:
.twikiMain {
   background-color:#600;
   color:white;
}
Have a look at the attachment styles in TWiki.PatternSkin if you haven't already done so.

O yeah, and don't forget to remove the logo from TWiki.WebTopBar.

-- ArthurClemens - 18 Apr 2005

I have added this example to TWiki.PatternSkinCustomization

-- ArthurClemens - 18 Apr 2005

Thanks for all the help. Have got it all working - both customised logo and web specific style sheet settings. Terrific support as always.

-- SueLocke - 19 Apr 2005

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2005-04-19 - SueLocke
 
  • 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.