Drupal:多节点创建

发布于 2024-08-02 09:06:37 字数 294 浏览 8 评论 0原文

我发现自己处于一种情况,我需要一个节点,只允许一个图像与其关联。换句话说,可以附加到我的图像类型“IMAGE”的最大图像是 1。我的问题是,用户必须能够一次上传多个图像。所以,我需要以下之一:

  • 一种依次创建多个节点的方法(也许是 Flexi 节点??但 Flexi 节点的问题是我需要预先填充的节点引用字段,当我添加时该字段无法更新另一个灵活节点字段)
  • 一种上传和自己插入数据的方式(创建不同的节点)(即创建自定义上传接口)

我当然更喜欢第一个选项,但除了 FlexiNode 之外,最好使用什么?

I've found myself in a situation where I need to have one node that allows for only ONE image to be associated with it. In other words, the maximum images that be can be attached to my image type "IMAGE", is 1. My problem is, that users must be able to upload several images at once. So, I need one of the following:

  • A way to create several nodes one after the other (maybe flexi node?? but the problem with flexi node is that I need to have prepopulated node refence field that can't be updated when I add another flexi node field)
  • A way to upload, and inser the data myself (creating distinct nodes) (i.e. create a custom upload interface)

I would of course prefer the first option, but other than FlexiNode, what is the best thing to use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼波传意 2024-08-09 09:06:37

CCK 图像字段将图像添加到现有节点,但默认情况下有许多图像。您可能需要查看创建图像节点类型的图像模块,或节点图像 似乎将图像与节点相关联(它支持批量上传)。

CCK imagefields add images to exsisting nodes but by default has many images. You may want to look at the image module which creates an image node type, or node images which seems to associate an image with a node (it supports bulk uploading).

桜花祭 2024-08-09 09:06:37

您已经看过内容构建工具包及其内置图像字段,是吗?我认为 Flexinode 已经过时了。

You have looked at the Content Construction Kit and its built-in image field, have you? I believe flexinode is pretty outdated.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文