[development] Multiple search blocks doing different searches.

Ronan Berder berder at teddy.fr
Mon Feb 8 11:51:24 UTC 2010

The question would be; what is it exactly that you are trying to search? If
you just want a few separate search blocks that search within a certain
content type, you may find interesting defining a View for it, creating
several displays for each content type you wish to be searchable and
exposing the "Search: Search Terms" filter. You then can set up the "Exposed
form in block: " setting to true (in "Basic Settings") and you should then
have the search forms showing in separate blocks. You can then compose by
adding filters or exposed filters your own way (on content types, taxonomy
or whatever you wish to let user search by or within).

On Mon, Feb 8, 2010 at 12:48 AM, Anth <malkouna at yahoo.com.au> wrote:

> Hi,
> My goal is to set up a tabbed search block which I'll use Quick Tabs to
> build, where each tab will prime the search with a keyword.  The step before
> this though is to have multiple blocks that do slightly different searches.
>  Defining the blocks is easy enough but I can't use hook_db_rewrite_sql (an
> example from searching at [1]) as I don't know what block is calling it.  Is
> there some easy way or trick around this or do I just have to manually call
> do_search, or write my own search, for each block?
> Thanks,
> Anthony
> [1] http://www.lullabot.com/articles/hiding-content-drupals-search-system
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100208/2f9986f2/attachment.html 

More information about the development mailing list