开发者

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 expos开发者_如何学Goe 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


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.


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.


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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜