PatternSkin CSS Cookbook

This topic is outdated. Please see the documentation with the latest PatternSkin release.

Hide the left bar

Use the USERSTYLEURL variable. No, the variable is not used only for users; the order in which variables are read ensures that topic variables always take precedence over user variables. So, write a USERSTYLEURL in a topic.

Follow these steps:

  1. Create a new topic, for instance HideLeftBar? . You may also want to use a central place for styles - in that case, you can choose TWikiPreferences or a new topic TWiki.CustomStyles? or something. I'll use the last one for the example below.
  2. In that topic, attach a css file (see attached example). Use the file that matches your TWiki installation (current is Cairo).
  3. In the topic where you wish to hide the left bar, write * Set USERSTYLEURL = %PUBURL%/TWiki/CustomStyles/hideleftbar_Cairo.css

See for an example: Sandbox.NotoDisplayLeftBarOnWebHomeforAllUsersTest with the attached css, and Sandbox.ShowNotoDisplayLeftBarOnWebHomeforAllUsersTest? to view the result.

-- ArthurClemens - 06 Oct 2005

Topic attachments
I Attachment Action Size Date Who Comment
elsecss hideleftbar_Cairo.css manage 0.1 K 06 Oct 2005 - 22:30 ArthurClemens css to hide the left bar (Cairo)
elsecss hideleftbar_Dakar.css manage 0.1 K 06 Oct 2005 - 22:31 ArthurClemens css to hide the left bar (Dakar)
Topic revision: r3 - 16 Feb 2007 - 20:55:22 - ArthurClemens
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo