Drupal,将值从一个内容复制到另一个内容
我使用 CCK 创建了两种内容类型:
- 是一个带有多组成分字段的菜谱;
- 是一个购物清单。
用户可以创建许多购物清单。我希望有一个下拉菜单,其中包含所有用户的购物清单,并在每种成分附近有一个“添加到购物清单”按钮,以将所选成分放入所选列表中。
对整个内容执行相同的操作也可能很有用。例如,将整个食谱添加到“菜单”内容中......
有什么想法吗?
I've created two content types with CCK:
- is a recipe with a multigroup field for ingredients;
- is a shopping list.
the users can create many shopping lists. I would like to have a dropdown menu with all the user's shopping lists and an "add to shopping list" button near every ingredient to put the selected ingredient in the chosen list.
It may be also useful to do the same with the entire content. For example adding the whole recipe to a "menu" content...
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置购物清单,使其具有一个节点引用字段,您可以在该字段中引用一个或多个菜单,然后在视图中显示不同菜单的成分。
You could set up the shopping list so that it has a nodereference field in that field you would reference the menu or menus, and then display the ingredients for the different menus in a view.