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

Comments

equalspeterd’s picture

Status: Active » Needs review
StatusFileSize
new2.26 KB

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.

equalspeterd’s picture

StatusFileSize
new2.36 KB

forgot to test the default case. use this patch instead of the patch in #1 instead

equalspeterd’s picture

Category: support » feature

moving this to a feature request category. any chance of seeing this in the next point release?

Passionate_Lass’s picture

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.

Anonymous’s picture

Sorry but the control

if(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

if(count($activeVocabularies)>0 and array_search($vocab->vid,$activeVocabularies)) {      
    $vs[$vocab->vid] = $vocab;
} else if(count($activeVocabularies) == 0) {
    $vs[$vocab->vid] = $vocab;
}
jannalexx’s picture

#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

japerry’s picture

Status: Needs review » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.