In drupal 8.9 I need to filter by taxonomy ID over multiple fields in the contextual filter of views.
How to do this ?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIn drupal 8.9 I need to filter by taxonomy ID over multiple fields in the contextual filter of views.
How to do this ?
On the views edit page:
Now you just add multiple taxonomy id's as 1+2+3 (for OR) or 1,2,3 (for AND).
And if you want to select on multiple fields: Repeat the process to add more fields and then you can do:
/1+2+3/877,454,453/345,345,345 Each slash represents the contextual filter field 1+2+3 is contextual filter one 877,454,453 is contextual filter two Etc.