Question
I'm using pattern skin, and I can get the Jump and Search boxes to go away by changing TWiki/WebTopBar, but I only need to hide them for one web, not for all of my webs. So, changing at TWiki doesn't help me at all. I'm going to make some alterations to the skin this web anyway, so if there's something I change at that level, it would be very helpful. I've created Public/WebTopBar, but I need to alter the templates to make it call that, and I'm not sure how.
Environment
--
CorrinneFahl - 26 Mar 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Try this approach:
- Create a site level setting called
HIDE_SEARCH_BOXES in Main.TWikiPreferences with an empty value.
- In the web(s) where you want to hide the search boxes, add a
* Set HIDE_SEARCH_BOXES = on setting to the WebPreferences.
- In TWiki.WebTopBar, use some conditional text based on %IF{}% to hide the search boxes based on the
HIDE_SEARCH_BOXES setting.
--
PeterThoeny - 26 Mar 2007
What I ended up doing was creating my own skin (
PatternSkin with a few changes) for publishing to the website. I created TWiki/PublishTopBar, and changed viewtopbar.publish.tmpl to include {"TWiki06x01.PublishTopBar"}.
Thank you for the help!
--
CorrinneFahl - 27 Mar 2007