This module adds checkbox taxonomy filters to views using contextual filters.
Reason for creating this module is that https://www.drupal.org/project/better_exposed_filters does not support checkboxes for taxonomies yet.
This module is work in progress.
NOTE: This module is work in progress, so everything is not automaticaly configured, there are some steps you need to do to make sure you get the desire result.
Assuming there is a view of the content which has references to one or more taxonomy vocabularies.
- Install module;
- Go to
admin/structure/vtcf_entity
; - Click Add VTCF Entity;
- Label: Input descriptive label for later use(e.g. {View Machine name} {Display Machine name});
- View name: This must be view machine name;
- View display name: This mus be the display name where you need to add filters;
- Taxonomy vocabularies: Choose which taxonomies you need to be present in filters.
- After choosing vocabularies, taxonomies will appear accordingly.
- Choose the taxonomies you need to be presented in filters.
- Go to your view edit page;
- Add Contextual filter
Has taxonomy term ID
; - Configure:
WHEN THE FILTER VALUE IS IN THE URL OR A DEFAULT IS PROVIDED
config; - Check
Specify validation criteria
; - In Validator choose
Taxonomy term ID
; - Under Vocabulary choose the vocabularies you configured in step #7;
- Multiple arguments: Choose
One or more IDs separated by , or +
- Under more check
Allow multiple values
andAllow multiple filter values to work together
options;
Now your filters should be visible on your view and they should be working.
Some of thi steps might might be converted to automatic configuration, but for now it works as described above.