Problem/Motivation

In some situations or requirements, one needs to combine OR and AND logic on their contextual filters.

Proposed resolution

Add the ability to combine AND and OR logic to contextual filters like it's done on standard views filters.

Comments

rcodina created an issue.

jukka792’s picture

This is needed! Thanks

chrisck’s picture

+1 for this much needed feature!

maxilein’s picture

You can achieve that when you are using tokens on views filter using

Tokens in Views Filter Criteria

and maybe also this module: https://www.drupal.org/project/token_filter

cballenar’s picture

I'm also interested in this. It's not even clear what the default behavior is. Forums seem to indicate "AND" to be the default.

chrisck’s picture

@maxilein Your suggestion may not work for everyone. In our case we are needing flexibility around AND/OR logic around the contextual filter from fields of the current entity.

Token filter does not have a token for field values for current page.