如何将所选自动完成框的值作为“查看参数”中的参数传递到下一个自动完成框cck 字段的部分?
我创建了一个产品评论内容类型,其中包含一些类别和评论字段。 我有 2 个自动填充字段,一个用于类别,一个用于产品选择,也是自动填充的字段。 创建了附加这些字段的视图,以便我可以根据传递的“视图参数”获取类别的输出。
当用户从类别自动填充框中选择类别时,我想将该选定的值作为参数传递给产品自动填充框。因此,产品将按照选定的类别出现。
我在论坛上搜索过这个问题,但没有得到正确的答案。有人知道这个功能吗? 请参阅下图以供参考。
提前致谢。
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 the 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.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这个链接可以帮助您:http://groups.drupal.org/node/3471
此示例适用于 Drupal 5,但 6 和 7 的基础知识是相同的:自定义 JS 来处理类别级别 1 值,然后将其发布到站点上的某个 MENU_CALLBACK,该视图调用视图以基于其 ID 获取节点通过类别级别 1 的参数。
无论如何,如果有一些困难,我可以为 D6 或 D7 生成一些代码。
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.