When adding/editing a contextual filter, you can check if you want the filter to allow multiple values.
The description for this checkbox is "If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND)."

But it seems like the filter cant handle the "," (AND).
In both cases views will do a "field.field_x IN (1,2,3,4)" query, and "IN" is just like many "OR"s in one operation.

CommentFileSizeAuthor
#4 Fixtures Export.txt17.22 KBhdennen

Comments

merlinofchaos’s picture

Are you using the taxonomy term (with depth) contextual filter?

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please explain which field you are talking about?

As always an export of the view would have helped here.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
hdennen’s picture

Status: Closed (cannot reproduce) » Active
StatusFileSize
new17.22 KB

I've got the exact same issue.

My contextual filter should allow multiple taxonomy terms (i.e. 2,10) but does not. If I place multiple term IDs in the argument, Views does not add the contextual filter to the query.

I'm using "Content: Has taxonomy term ID" for my block and pulling the raw value from URL.

The block works fine across all pages with one term ID.

Attached is my View export.

Any help on this would be greatly appreciated.

hdennen’s picture

Status: Active » Fixed

Turns out "filter value type" needs to be set as "term TIDs separated by , or +"
...missed that one.

Also, if anyone else is using Context and pulling TIDs from the URL, you can set up a path context as "taxonomy/term/%,%"

That's what got it working for me.

Status: Fixed » Closed (fixed)

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