Control over vocabularies for filter
| Project: | Event |
| Version: | 6.x-2.x-dev |
| Component: | API |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
| Issue tags: | taxonomy |
I've been using this module for quite some time, and I have a recurring need to be able to control which vocabularies get rendered in the filter control provided in the various views.
At the moment, this module looks for all vocabularies enabled for the content types, and incorporates all the terms from all those vocabularies.
Instead, it would be nice to allow the module's admin interface to indicate which vocabularies to include (rather than all enabled). Since my site allows free tagging, the filter control tends to get rather large over time.
If other folks share this need, I can probably contribute a patch for core (as i have found no way to override the values in this control at the theme layer).

#1
Turned out to be much easier than i was thinking it would be. The attached patch adds the vocabulary control to the overview admin page, and filters the taxonomy filter control accordingly.
#2
forgot to test the default case. use this patch instead of the patch in #1 instead
#3
moving this to a feature request category. any chance of seeing this in the next point release?
#4
I need this functionality too, unfortunately, I have no way to install/use patches. Think you could make me a .zip of the current events module with the changes? :) I would really appreciate it.
#5
Sorry but the control
<?phpif(count($activeVocabularies)>0 and array_search($vocab->vid,$activeVocabularies)) {
$vs[$vocab->vid] = $vocab;
} else {
$vs[$vocab->vid] = $vocab;
}
?>
it's a little bit stupid, maybe we can change it in
<?phpif(count($activeVocabularies)>0 and array_search($vocab->vid,$activeVocabularies)) {
$vs[$vocab->vid] = $vocab;
} else if(count($activeVocabularies) == 0) {
$vs[$vocab->vid] = $vocab;
}
?>
#6
#2 patch works after applying #5 mod
list specific vocabularies without useless selections... a must have especially if free tagging is enabled
very nice, tnk u