Question
How do you get the seach box in the top bar to seach all webs by default?
Environment
--
ChrisCooper - 17 Aug 2006
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.
Modify the search form in your TWiki web's
WebTopBar. Add a hidden field named "web" with value "all" to the form named
quickSearchForm. Here is the complete (but untested)
else section of the
IF:
else="<input type=\"text\" class=\"twikiInputField\" name=\"search\" value=\"\" size=\"14\" /> <input type=\"hidden\" name=\"web\" value=\"all\" />"
--
PeterThoeny - 18 Aug 2006
Works Perfectly, Many thanks!
--
ChrisCooper - 18 Aug 2006
I would like to modify my
WebTopBar as well to have it search in all public webs. However, I can't seem to edit the
WebTopBar topic as the wiki can't find it! However, I can see a the following files in the directory structure:
./data/TWiki/WebTopBar.txt
./data/TWiki/WebTopBar.txt,v
Yet the topic doesn't exist! Here are all the topics that start with "Web" in my Main web:
#
WebAtom
#
WebChanges
#
WebHome
#
WebIndex
#
WebLeftBar
#
WebMail
#
WebNotify
#
WebPreferences
#
WebRss
#
WebSearch
#
WebSearchAdvanced
#
WebStatistics
#
WebTopicCreator
#
WebTopicList
Arrgh, where is
WebTopBar so I can edit it?
--
AlfredvonCampe - 27 Nov 2007
It is in TWiki web: TWiki.WebTopBar
--
ArthurClemens - 27 Nov 2007
I could have sworn I looked in there too; I must have been blind. It's in there alright.
Thanks!
--
AlfredvonCampe - 27 Nov 2007
If you use the (now default)
TopMenuSkin you can change TWiki.TopMenuSkinTopBar.
--
PeterThoeny - 2010-11-24