Posted by mobcdi on March 18, 2010 at 5:20pm
What s the easiest way to exclude certain content types from search results in D6 or is it possible to have customised indexes based on security role membership so if a user isn't a member of a certain group they wouldn't see certain content types but would still be able to search?
Comments
Lots of questions thrown in
Lots of questions thrown in together here.
To exclude an item from a search result, you could write a small custom module and use hook_nodeapi to remove it.
http://api.drupal.org/api/function/hook_nodeapi/6
I'd have to test this, but if a user doesn't have permission to view an item, it shouldn't show in a search result anyway.