开发者

How can I pass value of selected auto complete box to next autocomplete box as a argument from "View argument" section of cck field?

I have created a product review content type with some fields for categories and reviews. I have 2 auto fill fields one for categories and one field for product selection which is also auto fill. Created views to attached with these fields so I can get th开发者_如何学Pythone output of categories as per passed "View argument".

When user will select the category from category auto fill box I want to pass that selected value as a argument to the product auto fill box. So the products will come as per selected categories.

I have searched for this on forums but not got the proper answer. Does anybody has idea about this feature? Please see following image for reference.

How can I pass value of selected auto complete box to next autocomplete box as a argument from "View argument" section of cck field?

Thanks in advance.


I think this link can help you: http://groups.drupal.org/node/3471 This example is for Drupal 5, but the basics for 6 and 7 are the same: custom JS to handle the Category Level 1 value, then post it to some MENU_CALLBACK on your site, which calls the View to get nodes with its IDs based on passed argument of Category level 1. Anyway, if there are some difficulties, I can generate some code for D6 or D7.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜