开发者

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 e.g. I have added and exposed filter of group Searc开发者_Go百科h (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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜