Tags:
search1Add my vote for this tag create new tag
, view all tags

Question

Hi TWiki Users, On the Main page of our twiki install i would like to present users with a simple search form that searches all the Webs in the Wiki ?. So far i have this ?

<form action='http://twiki.cel/bin/view/Main/WebSearch'>
   <input type="hidden" name="scope" value="topic"/> <input type="hidden" name="web" value="all"/><input type="text" name="search" size="22" />&nbsp;<input type="submit" class="twikiSubmit" value="%MAKETEXT{"Search"}%" />

This almost works but each search appends "&topic=Jump" onto the search causing the search to fail ? This parameter is clearly not listed in my form ? Any Idea's

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL4_64
Web server: httpd-2.0.52-9
Perl version: 5.8.5
Client OS: Fedora Core 6
Web Browser: Firefox 1.5.9
Categories: Search

-- IanClancy - 30 Apr 2007

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.

This should work:

<form name="allSearchForm" action="%SCRIPTURL{view}%/%WEB%/WebSearch">
<input type="hidden" name="web" value="all">
<input type="text" class="twikiInputField" name="search" value="" size="30" />
&nbsp;<input type="submit" class="twikiSubmit" value="%MAKETEXT{"Search"}%" />
</form>

-- ArthurClemens - 30 Apr 2007

Excellent Arthur. Thank you very much

-- IanClancy - 01 May 2007

 
Change status to:
Topic revision: r4 - 01 May 2007 - 08:39:05 - IanClancy
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback