This module works fine for me however I have a request.

As it is, one can specify one (or all) terms in a vocabulary however as soon as a new keyword is added to a vocabulary (I'm talking about freetagging terms), then that new term is available on the advanced search.

It would be a nice option - an extension of existing functionality - to be able to disable one whole vocabulary from appearing in the advanced search (whilst leaving other vocab's available).

CommentFileSizeAuthor
#10 search_config-145661-10.patch1.8 KBadr_p
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robertDouglass’s picture

How interesting. Without even knowing much about this module I had wondered if there was a solution which does what you describe. So, plus 1 from me for the feature.

bobdalob’s picture

Can anyone offer a hard coded solution to this? I would like to remove all freetagging terms from an advanced search.

canen’s picture

This can be done from your theme, if you are using PHPTemplate, by theming the search form and removing the free tagging category from the form.

I think this may be the function http://api.drupal.org/api/5/function/theme_search_theme_form. Information on theming forms can be found here http://api.drupal.org/api/5/file/developer/topics/forms_api.html

bobdalob’s picture

I don't understand.

I'm not very clever

yan’s picture

Supporting this feature request. It would definitely a helpful option to exclude whole vocabularies, not just terms. I'm having the same problem with free tagging as others: Everytime a new term is created, it appears in the advanced search options.

canen’s picture

http://drupal.org/node/449044 contains a patch that makes term selection inclusive instead of exclusive. I think this would achieve the same result and may work better for most cases. What do you think?

yan’s picture

canen, I think that would be better but can still be a problem: What if you do want to have newly created categories show up in the advanced search form? With the inclusive way you'll always need to enable them. It'd be nice to have both options: Choose whether the selection should be inclusive or exclusive and make possible the inclusion/exclusion of vocabularies, not just terms.

adamo’s picture

It would be awesome if you could exclude entire vocabularies. +1bagillion

jbomb’s picture

Version: 5.x-1.0 » 6.x-1.x-dev

#449044: Invert the way categories are specified has been marked as a duplicate. Note that it does contain a patch. I haven't had any luck applying it.

adr_p’s picture

Version: 6.x-1.x-dev » 6.x-1.6
Status: Active » Needs review
FileSize
1.8 KB

I've implemented a feature which allows removing entire vocabularies form advanced search form.

Comments and bug reports are very welcome.

yan’s picture

#10 seems to work just fine, thanks!

Alan D.’s picture

Status: Needs review » Closed (works as designed)

The D6 version will not be getting any further development and this is no longer applicable in the D7.