|
|
|||||
PatternSkin CustomizationQuestions and answers on configuring page elements. For styling your TWiki, see PatternSkinCssCookbook.Logo questionsHow can I change the web logo?By default the logo at the top left of each web points to the image with namelogo.gif that is attached to each web's WebPreferences. The default variables that cause this behavior are defined in TWikiPreferences. Redefine your custom variables in Main.TWikiPreferences (to keep TWikiPreferences intact):
* Set WEBLOGONAME = logo.gif
* Set WEBLOGOIMG = %PUBURLPATH%/%BASEWEB%/%WEBPREFSTOPIC%/%WEBLOGONAME%
* Set WEBLOGOURL = %SCRIPTURLPATH{"view"}%/%BASEWEB%/%HOMETOPIC%
* Set WEBLOGOALT = Home
There are 2 ways to change the logo in a web:
Using logo.gif:
Using a new filename:
How do I set a site-wide logo?There is a bunch of site-wide logo variables in Main.TWikiPreferences:WIKILOGOIMG, WIKILOGOURL and WIKILOGOALT.
To change only the web logo image to site-wide, in Main.TWikiPreferences set:
* Set WEBLOGOIMG = %WIKILOGOIMG% My logo does not fit the top barThe top bar is 64 pixels high by default. Using templates:Change the height of the top bar inUsing style sheets:
Create a new stylesheet with above definition in it, attach it to a topic and point
I want to change the white space above and below the logoChange the table style in WebTopBar. Default top padding is 11px.Top bar questionsI want to set or change the top background imageThe image at the top is called "header art" - commonly the top image found on blog sites. The image that is displayed by default is set by the variableWEBHEADERART, defined in TWikiPreferences.
Redefine your custom variables in Main.TWikiPreferences (to keep TWikiPreferences intact):
* Set WEBHEADERART = %PUBURLPATH%/%TWIKIWEB%/PatternSkin/TWiki_header.gif * Set WEBHEADERBGCOLOR = somehexcolor (no quotes, for example: #ffffff)You can also set WEBHEADERART per web, by defining the variable in the Web's WebPreferences.
I want to have the web color in the top barRedefineWEBHEADERBGCOLOR in Main.TWikiPreferences (to keep TWikiPreferences intact):
* Set WEBHEADERBGCOLOR = %WEBBGCOLOR% I want to remove the Jump and Search boxes from the top barIf you have localization enabled, you will also see a language dropdown box at the far right. You can remove these items from WebTopBar.I want to hide the top barUsing templates:The view template is populated like this:Using style sheets: See PatternSkinCssCookbookNoTopBar. Left bar questionsI want to hide the left barUsing templates:OmitUsing style sheets: See PatternSkinCssCookbookNoLeftBar. Other page partsI want to hide the edit buttons from certain usersIt may defy the wiki-ness of your TWiki installation, but in certain circumstances it could be useful to hide the edit buttons from users that are not logged in, for instance for customers. Create in the template directory the fileview.customer.tmpl. 'Empty' topicaction and toolbar by writing in the template:
%TMPL:INCLUDE{"view.pattern"}%
%TMPL:DEF{"topicaction"}%%TMPL:END%
%TMPL:DEF{"toolbar"}%%TMPL:END%
In TWikiGuest, set the cover to
* Set COVER = customerBy default this topic is editable only by TWikiAdminGroup members. r5 - 23 Oct 2005 - 00:11:40 - TWikiContributor
| |||||