Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#10 | search_config-145661-10.patch | 1.8 KB | adr_p |
Comments
Comment #1
robertDouglass CreditAttribution: robertDouglass commentedHow 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.
Comment #2
bobdalob CreditAttribution: bobdalob commentedCan anyone offer a hard coded solution to this? I would like to remove all freetagging terms from an advanced search.
Comment #3
canen CreditAttribution: canen commentedThis 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
Comment #4
bobdalob CreditAttribution: bobdalob commentedI don't understand.
I'm not very clever
Comment #5
yan CreditAttribution: yan commentedSupporting 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.
Comment #6
canen CreditAttribution: canen commentedhttp://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?
Comment #7
yan CreditAttribution: yan commentedcanen, 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.
Comment #8
adamo CreditAttribution: adamo commentedIt would be awesome if you could exclude entire vocabularies. +1bagillion
Comment #9
jbomb CreditAttribution: jbomb commented#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.
Comment #10
adr_p CreditAttribution: adr_p commentedI've implemented a feature which allows removing entire vocabularies form advanced search form.
Comments and bug reports are very welcome.
Comment #11
yan CreditAttribution: yan commented#10 seems to work just fine, thanks!
Comment #12
Alan D. CreditAttribution: Alan D. commentedThe D6 version will not be getting any further development and this is no longer applicable in the D7.