Score:0

Show view filters dynamically with AJAX

jp flag

The structure is following:

  • A product content type, with 2 taxonomy reference fields (Category and Origin country).
  • A view that shows products.

Is it possible to show 2 buttons for the Category and Country and when clicked, the appropriate filter exposes itself to the user? Is an additional block a viable solution for this? Or would the module Better Exposed Filters be helpful here?

It could look something like this: filter

in flag
I vaguely remember using https://www.drupal.org/project/views_dependent_filters on a D7 project. Not sure how far a long it is in its D8 development though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.