drupal ubercart 产品套件和视图
嘿。 我正在使用 drupal 6、ubercart 2、views 2。
我有几个与产品套件相关的产品。 我想定义一个视图来显示所有套件及其产品。 但是在定义我的视图时,我无法添加产品套件和该套件中的成员产品之间的关系。 有什么帮助吗?
hey.
i am working with drupal 6, ubercart 2, views 2.
i have several products that are related to a product kit.
i want to define a view that will show all the kits and their products.
but when defining my view, i cant add a relationship between the product kit and the products that are member in this kit.
any help ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道它是否仍然相关,但看起来 CCK 中的节点关系字段非常适合您的任务。视图也能很好地与它们配合。只需为您的产品类型创建一个并将其设置为指向产品套件即可。
这样您就可以在产品和产品套件之间建立多对一的关系。
Don't know if it's still relevant, but looks like node relations fields in CCK are perfect for your task. Views nicely work with them too. Just create one for your product type and set it to point to product kits.
This way you would get a many-to-one relation between products and product kits.