2

I am trying to make multiple conditions on a field in Views.

I found Views Conditional that allows only one condition.

I also found Views Custom Conditions, which I still don't really find how to use (very few documentation and the one left is very confusing to me).

So I'd like to find out How to put multiple conditions on one field, using Views 3.

  • Thank for you answer. In fact'd like to Show the number of images contained each node in the view. The image field has a default image attached if the user does not uplaod one. The number that I want to display depend on 3 conditions : 1. If the file has the precised id of the default image then "0 image" 2. if the number of image is one "1 image" 3. If the number of images in greather than 1 then "x images". I have tried it will views_conditional (drupal.org/project/views_conditional) which give me only one condition. – mosgeorges Aug 11 '17 at 13:41
2

Consider module Views Contextual Filters OR (which only has a dev version today). Excerpt from its project page:

... provides a views plugin which modify query to support OR conditions for contextual filters.

A few issues on Drupal.org that may be of some help:

There is also this comment in the support forum.

  • Ok. I'll try this too. – mosgeorges Aug 11 '17 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.