Does anyone know whether it's possible to create a single Views Exposed Filter and it be applied to multiple fields?

So rather than having say 3-text fields to filter against the fields:

  • 'node body',
  • 'node title', and
  • 'CCK question'

You would simply have 1-text field that would be used to check for the existence of the entered key words against all three fields?

Any advice would be really appreciated.

Many thanks.

Comments

matt_harrold’s picture

Not quite ... you can add the Search filter (expose it) ... this will give you a single text field that will search across nodes in your View using the same mechanism used in the Drupal search form. I'm not sure whether it excludes fields not shown in the view ... you'd have to give it a go, but it definitely returns to your view with results filtered by your search terms.

mikee’s picture

I added the Filter Search: Search Terms and it's now working perfectly.

Thanks a million!

wolfmarter’s picture

Thank you so much for this. I have been looking for days and could not find a good solution and yet it was so simple.

regards

wolfmarter

johnnydarkko’s picture

If you're like me and you find that the filter Search: Search Terms is not an available option, enable the core search module first :)

--jBocalig

netourish’s picture

Thanks, @mikee for posting this and @matt_harrold for your answer for this. This really worked for me.

Thanking you all,
Pradeep.

ainz’s picture

Thank you, thank you and thank you!!

syngi’s picture