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 History Action Size Date Who Comment
Cascading Style Sheet filecss hideleftbar_Cairo.css r1 manage 0.1 K 2005-10-06 - 22:21 UnknownUser css to hide the left bar for PatternSkin (Cairo)
Cascading Style Sheet filecss hideleftbar_Dakar.css r1 manage 0.1 K 2005-10-06 - 22:22 UnknownUser css to hide the left bar for PatternSkin (Dakar)
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-12-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.