Question
Is it possible to have a customised logo and CSS layout (I'm using pattern skin) for an individual web?
Environment
--
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