- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 104字
- 2025-04-04 18:20:51
Multiple and exclusion
You may also configure the contextual filter to allow AND or OR operations along with exclusion. These options are under the More section when adding or editing a contextual filter.
The Allow multiple values option can be checked to enable AND or OR operations. If the contextual filter argument contains a series of values concatenated by plus (+) signs, it acts as an OR operation. If the values are concatenated by commas (,) it acts as an AND operation.
When the Exclude option is checked, the value will be excluded from the results rather than the view being limited by it.