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?

Members fund testing for the Drupal project. Drupal Association Learn more


goodelectrons created an issue. See original summary.

goodelectrons’s picture

Assigned: goodelectrons » Unassigned
dev3.addweb’s picture

43.19 KB
35.03 KB
40.91 KB
172.16 KB

I 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.

RenatoG’s picture

Status: Active » Reviewed & tested by the community
Issue tags: +ciandt-contrib

Hi people.

I followed the steps of Kishna and works good for me too.

Thank you very much Kishna.


RenatoG’s picture

Status: Reviewed & tested by the community » Fixed

@goodelectrons, you can follow this steps for the solution.

If have any question, please comment here okay?

Good Work.

Thank you very much, people.

dev3.addweb’s picture

Thanks @RenatoG for praising the efforts I put in to resolve the issue. We are ready to help always :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.