开发者

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

开发者 https://www.devze.com 2023-03-20 08:33 出处:网络
I have created a product review content type with some fields for categories and reviews. I have 2 auto fill fields one for categoriesand one field for product selection which is also auto fill.

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

精彩评论

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

关注公众号