Tags:
search1Add my vote for this tag user_interface1Add 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 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.

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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-05-01 - IanClancy
 
  • 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.