Question
Hi,
We're running TWiki version Tue, 04 Jul 2006 build 10807, Plugin API version 1.1.
I've amended the standard
WebSearch to simplify it for our users, but there's one change I've not been able to make:
I want to set it so that the standard
WebSearch defaults to looking in all webs, but that there is a checkbox that, if ticked, sets it to only look in the current web - i.e. the reverse of the current All Public Webs checkbox.
The URLPARAM{web} parameter doesn't seem to have a setting that allows this. Is there anything else I can do?
Environment
--
SimonKnaggs - 01 Jun 2007
Answer
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.
See
SearchAllWebsTopBar,
HowToChangeSearchBoxScope,
SearchInWebTopBar
--
PeterThoeny - 01 Jun 2007
Hi Peter,
Thanks, but that didn't really answer my question - I think I may have put it badly. I've figured out how to make the search include all webs - what I'm looking for is a way to add a checkbox that enables the user to focus the search only on the current web. I.e. - check the box and the search will only look in the web you are currently in. Is there anything you know of that will do this, or any handy guide to creating checkboxes?
--
SimonKnaggs - 04 Jun 2007
Please study the source of
TWiki.WebSearch, it contains the checkbox to search all webs.
--
PeterThoeny - 04 Jun 2007
Yes - that's what I've been using.
My search is already set to all webs by default. What I am asking for is a checkbox that WHEN CHECKED sets the search to CURRENT WEB ONLY.
The parameter that the all webs checkbox uses does not include a setting for this. Can you advise or point me in the direction of anything useful?
--
SimonKnaggs - 05 Jun 2007