Tags:
create new tag
view all tags

Question

How do you get the seach box in the top bar to seach all webs by default?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 4.3 686_64, 2.6.9-34.0.2.ELsmp
Web server: Apache/2.0.52 (CentOS)
Perl version: 5.8.5
Client OS: WIndows 2000 SP4
Web Browser:  
Categories: Search

-- ChrisCooper - 17 Aug 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2010-11-24 - 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.