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.
I'm setting up a contextual filter on a location: city field. When choosing 'allow multiple values' all is well when multiple values are provided in the url filter (+ OR ,) but it fails when a single value is provided. When unchecking 'allow multiple values' I can get a single filter value to display.
Is there a way to allow for multiple values AND a single value on the same contextual filter?
Comment | File | Size | Author |
---|---|---|---|
#3 | settings.jpg | 172.16 KB | dev3.addweb |
#3 | screenshot3.png | 40.91 KB | dev3.addweb |
#3 | screenshot2.png | 35.03 KB | dev3.addweb |
#3 | screenshot1.png | 43.19 KB | dev3.addweb |
Comments
Comment #2
goodelectrons CreditAttribution: goodelectrons commentedComment #3
dev3.addweb CreditAttribution: dev3.addweb at AddWeb Solution Pvt. Ltd. commentedI have checked this with same version of Views and it's working for me for both Single and multiple values.
Please see attached screenshots for setting of the contextual filter and how it works.
Comment #4
renatogHi people.
I followed the steps of Kishna and works good for me too.
Thank you very much Kishna.
Regards.
Comment #5
renatog@goodelectrons, you can follow this steps for the solution.
If have any question, please comment here okay?
Good Work.
Thank you very much, people.
Comment #6
dev3.addweb CreditAttribution: dev3.addweb at AddWeb Solution Pvt. Ltd. commentedThanks @RenatoG for praising the efforts I put in to resolve the issue. We are ready to help always :)