drupaldrupal-viewsdrupal-taxonomydrupal-exposed-filter

A way to limit taxonomy exposed filter options in view with arguments in drupal


I'm building a product catalog where a particular section is displayed by views with an argument, a taxonomy id of a section.

But I also need to give user the ability to further narrow down the search by specifying the producer by choosing term in another vocabulary in the exposed filter.

I'm trying to limit the selection to terms for which nodes in a chosen section exist. Looks like the views_selective_filter and view_hacks are especially for that, but looks like out of the box neither of them takes into account the view argument. Is there a remedy or workaround?


Solution

  • In the end I used views_taxonomy_selective_filter. I had to patch views module as I described in the comment in order to make it generate select options after processing arguments.