简体   繁体   中英

Drupal 6 Advance Search Form with Views and CCK fields

I am looking for Advance search module that'll expose CCK fields for search. I know using Views2 we can expose the CCK fields as a filter. However its not possible to convert CCK text fields as checkboxes. For eg I have added and exposed filter of group Search (Search: Search Terms). To assist I want to add 2 check-boxes like search in Title and/or Description which are CCK Text fields. I couldn't find way to change them as check-boxes with functionality search in Title and/or Description CCK fields.

Similarly, I want to add other assisting search fields like Search in Price Text filed with min-max (in- between)values, zip code + Geo-proximity search filters.

Could you please suggest me some module or hint to achieve this?

Have you tried Better Exposed Filters . It will allow you to use checkbox / radio elements

[Edit]

You may have to resort to using a hook_form_alter and hook_views_query_alter

In the form alter you can add elements to the filter form, and then in the views_query_alter you can change the query depending on the form values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM