0

i have a content type having two major fields.

A and B

Now i want to get all resutls of those nodes .

if A having value of 1 or B having value of 2.

if anyof node matched with one field i need to show result.

How to do this in views ?

Thanks.

0

You can follow this using below step:

  • Go to Administration -> Structure -> Views
  • Edit your existing view or create new new.
  • Add Filter 'A' and B in your view
  • Click on "Rearrange" filter icon in Filter section
  • Click on "Create new filter group" and move filter "A" and "B" in new filter group.
  • Select Operator as "Or" in new filter group and save the form.

Views filter group

  • can we do this on CONTEXTUAL FILTERS itsled – user23324 Nov 18 '13 at 11:33
  • No, there is no simple method for contextual filter. You need to alter views query for contextual filter. – Jayendra Kainthola Nov 18 '13 at 11:48

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.