[support] Filter views on multiple fields

ceooph+drupallist at gmail.com ceooph+drupallist at gmail.com
Wed Sep 22 13:22:17 UTC 2010


  Le 21/09/2010 18:14, Ted a écrit :
>
> Another approach is to use the computed_field module to create a 
> computed field that stores all the values from the other fields, then 
> add that field as a filter. It's a hack, but for small datasets it 
> won't affect performance.
>
> Ted
>
> On 9/21/2010 3:18 AM, Carl Wiedemann wrote:
>> You might try enabling the search module and exposing the search 
>> terms filter. This should work on all indexed content (including 
>> CCK). However, I don't think it matches partial strings.
>>
>> On Tue, Sep 21, 2010 at 12:57 AM, ceooph+drupallist at gmail.com 
>> <mailto:ceooph%2Bdrupallist at gmail.com> <ceooph+drupallist at gmail.com 
>> <mailto:ceooph%2Bdrupallist at gmail.com>> wrote:
>>
>>      Hi list,
>>
>>     I have a content type with multiple fields (name, tel, email, ...).
>>     I have created a view to list all nodes of this content type. I
>>     able to
>>     sort this view by names, tel, ...
>>     But now, I want to filter this view by ONE filter textbox and not one
>>     for name, an other for tel, ...
>>
>>     How can I do that ?
>>
>>     I try to use custom text to concatenate all fields but I can't
>>     filter my
>>     view on custom text field !
>>
>>     I have 2 solutions in mind. Create my own filter or concatenate cck
>>     fields into one and filter on it.
>>     But I don't know how do that.
>>
>>     Do you have some idea ? Or how can I do that ?
>>
>>     Thanks in advance for your help.
>>
>>     --
>>     [ Drupal support list | http://lists.drupal.org/ ]
>>
>>
>
Hi,

It's very helpful. Thank you !!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100922/187596ff/attachment.html 


More information about the support mailing list