Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a view listing nodes. I added 2 exposed filters. One is Content: title and the other is Content:Body. Then I have 2 input fields to enter some keyword to do searchs.

I need to have just one field and do the search in both fields: title and body. Can I do this?

enter image description here

share|improve this question

1 Answer

up vote 2 down vote accepted

I think you could either:

  • Use the Global: Combine fields filter which allows you to choose two fields (out of those already added to the display as a normal field) to filter on. The filter can be exposed, its operator changed, etc. like normal. Views warns This filter doesn't work for very special field handlers.

  • Use the Search: Search Terms filter. This uses search.module's data to do the query (check out the search index build mode).

share|improve this answer
thanks. I used the Search: Search Terms filter method and get it working properly. – chefnelone Nov 26 '12 at 17:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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