Question
How do I change the default scope of the search box in the pattern template to "all" rather than "text"?
I have successfully changed the default on the
WebSearch topic, but this does not apply to the Search box.
Environment
--
RobHill - 10 May 2007
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
WebTopBar located in the TWiki web.
--
PeterThoeny - 11 May 2007
Thanks Peter, I thought that was the right place to look, but hadn't had any luck modifiying it. I assumed the scope="topic" bit in the URLPARAM expression was the right bit to change, but having looked at
VarURLPARAM I don't really understand what the scope= bit actually does in that expression...
Anyway, in the end I added:
<INPUT TYPE=hidden NAME=scope VALUE="all">
to the form field in
WebTopBar and that seems to work as I wanted.
Thanks
--
RobHill - 14 May 2007
Hmm, it should work. There are two forms. Make sure you add this to the search form, not the jump form. And better to use proper XHTML:
<input type="hidden" name="scope" value="all" />
--
PeterThoeny - 15 May 2007
See also
SearchAllWebsTopBar,
SearchInWebTopBar.
--
PeterThoeny - 01 Jun 2007