Disable an entire vocabulary (without disabling others)

bobdalob - May 21, 2007 - 14:12
Project:Search config
Version:5.x-1.0
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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).

#1

robertDouglass - May 21, 2007 - 14:49

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.

#2

bobdalob - May 30, 2007 - 17:07

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

#3

canen - May 30, 2007 - 21:03

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

#4

bobdalob - June 2, 2007 - 14:03

I don't understand.

I'm not very clever

#5

yan - March 29, 2009 - 17:53

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.

#6

canen - May 30, 2009 - 20:55

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?

#7

yan - October 11, 2009 - 13:14

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.

#8

adamo - November 4, 2009 - 03:20

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

 
 

Drupal is a registered trademark of Dries Buytaert.