Tags:
create new tag
, view all tags

Question

I am wondering if there is a way to make the WebLeftBar go away on only one page of my TWiki site, for all users, all the time. Someone recently suggested that making a change in UserStyles should get the job done, but those changes seem to affect only the user that makes them. I am looking for a way to get the WebLeftBar to not show up permanently, and regarding anyone that visits the page, not just myself. Thanks,

-- TWikiGuest - 18 Sep 2005

Environment

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

-- TWikiGuest - 18 Sep 2005

Answer

Use the USERSTYLEURL variable. No, variable is not used for users only; and the order in which variables are read makes 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

OK, that makes sense.

But what about a situation where the site supports multiple skins and the home (or any specific) page must display the same - regardless of which skin the user has set or is set in the URL.

-- AntonAylward - 07 Oct 2005

 
Topic attachments
I Attachment Action Size Date Who Comment
Cascading Style Sheet filecss hideleftbar_Cairo.css manage 0.1 K 2005-10-06 - 22:21 ArthurClemens css to hide the left bar for PatternSkin (Cairo)
Cascading Style Sheet filecss hideleftbar_Dakar.css manage 0.1 K 2005-10-06 - 22:22 ArthurClemens css to hide the left bar for PatternSkin (Dakar)
Topic revision: r6 - 2005-12-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.