Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass multiple values to contextual filter? #34

Open
tmsss opened this issue Dec 26, 2019 · 2 comments
Open

How to pass multiple values to contextual filter? #34

tmsss opened this issue Dec 26, 2019 · 2 comments

Comments

@tmsss
Copy link

tmsss commented Dec 26, 2019

I have a view that accepts multiple arguments that correspond to taxonomy term IDs. How could I create a query that accepts an array of values in a contextual filter?

@tmsss tmsss changed the title How to pass multiple arguments in contextual filters? How to pass multiple values to contextual filter? Dec 26, 2019
@drewble
Copy link

drewble commented May 8, 2020

I could also use this info.

@drewble
Copy link

drewble commented May 14, 2020

@tmsss You can pass multiple values by enabling Allow Multiple Values on your contextual filter and passing the values to the query as "a, b, c" for AND and "a + b + c" for OR.

However, I think it would be preferable overall if the this module supported arrays as arguments and the schema expected [String] instead of String.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants