Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Search

-- SimonKnaggs - 01 Jun 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.

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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-06-05 - SimonKnaggs
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.