Gossamer Forum
Quote Reply
Pluggin before search.
Hi all,

How can I add this condition:
CatId in (1,2,3,4) before the query function.

Thanks as always,

Beck
Quote Reply
Re: [Beck] Pluggin before search. In reply to
Hi,

Not easily, look at admin/User/Search.pm to see how it does it. It needs to pass in a callback function. That function will get a list of results the search index matched, it's then up to the function to filter out the results that are not needed.

Hope this helps,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Pluggin before search. In reply to
Hi Alex,

How can I put a callback function for searching in a group of Categories?

Cheers,

Beck
Quote Reply
Re: [Beck] Pluggin before search. In reply to
Hi,

Can you expand a bit on what you are doing? I'm not sure I understand.

Cheers,

Alex
--
Gossamer Threads Inc.