Question
OK I'm re-registering per
PeterThoeny's request with my name. I will now re-post my question and one answer I was given:
Original Question: I'm spending WAY too much time figuring out how to edit the sidebar (almost half a day!) All I want to remove the word "Twiki" from the Webs in the sidebar and add some other webs in the sidebar. I see the variables in the Site Level Preferences page; however I believe I must change what is displayed in the variable. I cannot seem to find where to do that. Please help.
Answer from
ArthurClemens: Each Web has a topic called
WebLeftBar. You can edit that like any other topic.
My reply is: I had already run across
WebLeftBar before I posted. I was hopeful that was the place to edit - however, the coding is variables:
%WEBLIST{" * [[$name.WebHome][$name]]" separator=""}%
So I think my question more so is "Where do I go to edit those variables" so that certain webs won't be displayed, and so I can add other webs? Thank you.
Environment
--
LisaAkari - 20 Dec 2005
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.
The
WebPreferences topic in each web has a
NOSEARCHALL setting that determines if the web is listed in the
%WEBLIST{}% or not.
--
PeterThoeny - 20 Dec 2005
That didn't work. I tried:
NOSEARCHALL = Twiki
and
NOSEARCHALL =
WebHome
Twiki is still showing up in the sidebar.
I understand that if I add webs they'll automatically show up, so that's great. It's just getting Twiki out of the sidebar that I've been tasked to do.
--
LisaAkari - 20 Dec 2005
You need to set it to an empty value in your
TWiki.WebPreferences:
Notice that this means that the TWiki web will not be listed in the
SiteMap, e.g. users will not be able to easily go to the TWiki documentation.
If you want to have complete control you could define your own web list, e.g. create a
Main.SiteWebList topic that has a manually maintained bullet if webs. Include that in all side bars.
--
PeterThoeny - 20 Dec 2005
OK, I'm sorry. I misunderstood. Originally, NOSEARCHALL was set to null. So that's the way it is originally and the TWiki web is still showing up in the sidebar. I'd set it back to no value since what I had done didn't work.
So, since NOSEARCHALL = null, and TWiki is STILL showing up in the sidebar, where else can I look at to maintain this? (and you're right, we do not want regular users to easily access the Twiki web from our site).
I'm not sure I want to create a
SiteWebList yet because first, I don't know where I'd do that and what I'd maintain in that. I'm afraid I'd open another can of worms for myself, when I'm sure that removing the TWiki web in the sidebar must be simple...
--
LisaAkari - 20 Dec 2005
Lisa, you need to enter
* Set NOSEARCHALL = on
to the
WebPreferences topic of each web you want to exclude from being shown in the WEBLIST area of the
WebLeftBars of the other webs. Of course you'll see the 'hidden' web listed in the
WebLeftBar when you view a topic of this 'hidden' web. Maybe that's your problem.
Read
TWikiPreferences to see other settings that can be defined for each web individually (that override their system wide setting in
TWikiPreferences).
--
FranzJosefSilli - 21 Dec 2005
OK thank you Franz - I believe I'm closer to where I want to be. I'm starting to get a better idea of what's going on from what you wrote. I'll poke around and see if I can get it right and come back if I have further questions, and will post if I've gotten the problem resolved.
--
LisaAkari - 23 Dec 2005
OK! That was it! Thank you for the thorough explanation. I went to the Twiki Webpreferences, set
NoSearchAll to on, then went back to my main wiki page and the Twiki link is gone.
THANK YOU for the that explanation. It was very concise.
--
LisaAkari - 23 Dec 2005
After much grief trying to figure out how to hide a Web, we finally figured out that if you're logged in as an administrator, you will see hidden webs! In short, we found that hiding a web is as easy as setting NOSEARCHALL = on in the
WebPreferences topic of the Web you want to hide and then use webs="public" in the %WEBLIST {}% variable in the TWiki/WebLeftBarWebsList topic. Once you make sure you're not an Admin, the Web is hidden.
Since it took us a couple of days to figure this out, thought it'd be useful to share!
--
StephanieDalPra - 21 Jul 2006
Thanks, I updated the
VarWEBLIST doc (in SVN.)
--
PeterThoeny - 21 Jul 2006
I would like to hide all sub-webs. With NOSEARCHALL = on for sub-webs I still see them in the web list when setting
%WEBLIST{webs ="public"}%
Further this is thde default WEBLIST. How can I add webs="public" ?
%WEBLIST{" * <span style=\"white-space:nowrap\"><a href=\"%SCRIPTURLPATH{"view"}%/$name/%HOMETOPIC%\"><img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" /> $indentedname</a></span>"}%
--
PeterJones - 28 Mar 2007
On Sub-webs listed: This sounds like a bug (I have not tried to verify). Could you file a bug report in
Bugs:WebHome/
On adding
webs="public": See
VarWEBLIST; basically write this:
%WEBLIST{ " * <span... </span>" webs="public" }%
--
PeterThoeny - 28 Mar 2007
In a newly created web, with NOSEARCHALL = off (initially it was on), and with the default:
%INCLUDE{ "%TWIKIWEB%.WebLeftBarWebsList" }%
and with the Web being restricted in viewing to a specific group, the new web gets listed in the
WebLeftBar for the administrator, but not for another member of the group with full access (
AllowWebView,
AllowWebChange and
AllowWebRename) to the new web. What code would be required to show each logged in user all webs to which they have at least
AllowWebView access according to their group membership?
--
WhitBlauvelt - 27 Aug 2007
Please open a new support question.
--
PeterThoeny - 28 Aug 2007
Done. I've made this its own question at
HowToTweakWeblistPerUser.
--
WhitBlauvelt - 28 Aug 2007