aneuryzm
aneuryzm

Reputation: 64834

Drupal, Views: can I use 1 filter, for many CCK fields?

I'm using Views in Drupal.

I want an exposed filter selecting the ndoes containing a specific word. But I noticed I cannot search more then one CCK field per filter.

Since I want to expose it, I want an unique text-input field for all CCK Fields: is that possible ?

At the moment I can only add a new filter for each CCK field.

Thanks

Upvotes: 1

Views: 2158

Answers (3)

milkovsky
milkovsky

Reputation: 8862

Here is the discussion. http://drupal.org/node/451000

Drupal 6 solution - Comment #16

Drupal 7 solution

Previous solution can be used to Drupal 7 but there is one module you can use http://drupal.org/project/views_filters_populate

Great module. But there is 1 problem "only populates STRING exposed filters"

Upvotes: 0

aneuryzm
aneuryzm

Reputation: 64834

I've actually found the item "Search" in my Filters options in Views. I dunno how I could ignored it before. It actually exists, and works quite well. Solved.

Upvotes: 1

vfilby
vfilby

Reputation: 10008

You can use the CCK module Computed Field.

Setup the field so that it stores all the text from all the other fields, then you can filter on this one field (and effectively filter on all fields).

See this code snippet for merging multiple fields into one.

Upvotes: 2

Related Questions