I need to hide categories/nodetypes in the "advanced search" box from specific roles (or hide all by default and then disclose some or all to each specific role). Some of our vocabularies and content types are for "in-house" use only. I've looked at the admin page for Search, and there are no options to hide categories and/or content types.
I've tried denying the view permission for a given vocabulary in the Roles admin page. That may restrict the search results themselves (it should, but I haven't checked), but it had no effect on which categories were displayed in the dropdown.
Will I need to modify the module? Has anyone done this, or something like it? Thanks for any help or suggestions.
Comments
advanced search config
Hi,
Try out the search_config module in downloads. It s/b able to fix your problems for "options to hide categories and/or content types."
jim
Thank you
Thanks, Jim. This module is very close to what I'm looking for–I think. I wonder if you could answer a question about the module? I installed and enabled it, but I'm having trouble tuning it.
The docs say that it can be used to "to decide if the following fields or selected members of their groups are removed from the search form: keywords, categories, node types." I can see how you are supposed to remove, say, the entire categories dropdown from the advanced search form, although so far the setting doesn't seem to "take." (Probably a caching problem–I hope.) But I do not see any way to remove just "selected members" of categories from the dropdown. Can you help me with that?
Oops, found it
Aha, it was there all along, but collapsed, so I kept scrolling past it. Right there on the admin/settings/search page.
Thanks!
Thanks for the tip. It helped me too. Nice module.
Thank a lot, it helps my case
Thank a lot, it helps my case too. Like it.