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
--
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:
- 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.
- In that topic, attach a css file (see attached example). Use the file that matches your TWiki installation (current is Cairo).
- 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