Tags:
create new tag
, view all tags

Question

Hi,

I want to change the main search box in the top right of my TWiki site to search "all public webs" by default, not just the web the user is in at the time.

How can this be done?

Thanks in advance.

James

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows Server 2003
Web server: Apache 2.2.9 (Win32)
Perl version: 5.008008 (MSWin32)
Client OS: Windows XP SP3
Web Browser: Internet Explorer 7.0
Categories: Search

-- JamesRJMorris - 30 Nov 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

VarSEARCH has a web="all" parameter that does that.

If you are using the default PatternSkin you can modify the TWiki.WebTopBar page in your TWiki installation. Modify the hidden field named web to this:
<input type="hidden" name="web" value="all" />

-- PeterThoeny - 01 Dec 2008

This works a treat. Thanks a lot Peter.

James

-- JamesRJMorris - 04 Dec 2008

 
Change status to:
Topic revision: r3 - 2008-12-04 - 22:48:17 - JamesRJMorris
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.