Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Dustin Shackley on
Hello all,
We are trying to find the best way to make a different selection type for exposed filters. Currently appear to only have Dropdown and Autocomplete, but we need a row of buttons for each option instead of a textbox or dropdown menu.
Can anyone point us in the right direction? I took a look at better exposed filters but it doesn't give us what we need.
I also looked at Webforms but I'm not sure that quite meets the requirements either.
Thanks so much,
Dustin
Comments
Could you share the image
Could you share the image with the expected result?
https://ibb.co/Z6RHJsK
https://ibb.co/Z6RHJsK
This is what we'd like it to look like.
A row of buttons that when clicked change the filter criteria using ajax.
My first impression is that
My first impression is that exposed filters are not suitable for this.
Instead of you can create the block with the buttons (links).
Or it can be a menu block.
Each link will be link to a unique view.
Or maybe, it make sense to use contextual filters instead?
Every links will be link to a single view but will have different arguments for contextual filters?