logo.gif that is attached to each web's WebPreferences.
* Set WEBLOGONAME = logo.gif
* Set WEBLOGOIMG = %PUBURLPATH%/%BASEWEB%/%WEBPREFSTOPIC%/%WEBLOGONAME%
* Set WEBLOGOURL = %SCRIPTURLPATH{"view"}%/%BASEWEB%/%HOMETOPIC%
* Set WEBLOGOALT = Home
There are several ways to change the logo in a web: logo.gif and attach it to the web's WebPreferences topic. PatternSkin's stylesheet assumes the logo is 40px high. More about that later.
/pub/YourWeb/WebPreferences/.
* Set WEBLOGONAME = your-logo-name.gif-or-png
WIKILOGOIMG, WIKILOGOURL and WIKILOGOALT.
To change only the web logo image to site-wide, in Main.TWikiPreferences set:
* Set WEBLOGOIMG = %WIKILOGOIMG%
/* height of the top bar */
#patternLeftBar {
top:64px; /*C3*/
}
#patternTopBar,
#patternTopBar table.patternTopBarContents {
height:64px; /*C3*/
}
(C3 is used as reference to all occurrences with the same value)
You can change these numbers in layout.css directly, or create a new stylesheet, attach it to a topic and point USERLAYOUTURL to that topic attachment. See PatternSkinCssCookbook about creating custom styles.
table.patternTopBarContents td {
height:100%;
width:100%;
vertical-align:middle;
}
to:
table.patternTopBarContents td {
height:100%;
width:100%;
vertical-align:top;
}
You can also define an offset like this:
table.patternTopBarContents td {
height:100%;
width:100%;
vertical-align:top;
padding-top:12px;
}
WEBHEADERART, defined in TWikiPreferences.
Redefine your custom variables in Main.TWikiPreferences (to keep TWikiPreferences intact):
* Set WEBHEADERART = %PUBURLPATH%/%TWIKIWEB%/PatternSkin/TWiki_header.gif * Set WEBHEADERBGCOLOR = somehexcolorYou can also set
WEBHEADERART per web, by defining the variable in the Web's WebPreferences.
WEBHEADERBGCOLOR in Main.TWikiPreferences (to keep TWikiPreferences intact):
* Set WEBHEADERBGCOLOR = %WEBBGCOLOR%
twiki.pattern.tmpl (the gray text is from the template):
<div id="patternTopBar">
<table class="patternTopBarContents" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<span class="patternTopBarLogo twikiLeft">
<a href="%WEBLOGOURL%"><img src="%WEBLOGOIMG%" border="0" alt="%WEBLOGOALT%"/></a>
</span>
</td>
</tr>
</table>
</div>
<div class="twikiRight" style="margin-right:2em;">
<form id="topBarChangeLanguage" action="%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%" method="get">
<select name="language" onchange="document.getElementById('topBarChangeLanguage').submit()">
%LANGUAGES{format="<option $marker value='$langtag'>$langname</option>" selection="%LANGUAGE%"}%
</select>
<input type="hidden" name="template" value="oopslanguagechanged" />
<noscript>
<input type="submit" value="%MAKETEXT{"Change language"}%" />
</noscript>
</form>
</div>
This will render:
| Topic PatternSkinCustomization . { Edit | Attach | Backlinks: Web All webs | Printable | History: r4 < r3 < r2 < r1 More } |
|
Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.PatternSkinCustomization |