自定义表单中的 Drupal Nodereference

标签 drupal drupal-6 cck drupal-fapi

我有一个自定义的 Drupal FAPI 表单,它支持相当复杂的工作流程,我想向其中添加一个 Nodereference 字段。尽管我发现有人在自定义表单上包含 Nodereference 字段,但我一直无法找到该字段的 FAPI 声明的任何示例(除了使用带有 Nodereference AHAH 回调的文本字段的问题: Is it possible to customise drupal node reference and pass your search and a argument from another field ) .

那么:将 Nodereference 字段添加到自定义表单 (FAPI) 的最佳方法是什么?

额外问题:是否有一种简单的方法可以像 CCK 在节点形式中支持的那样允许多个值? Multivalue Nodereference Field in CCK Node

最佳答案

关于自定义表单中的 Drupal Nodereference,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2587906/

相关文章:

android - 用于构建 XML 服务器以在 Android 应用程序上显示的服务模块

mysql - fatal error :创建模块后,在drupal 6中调用未定义的函数错误

Drupal, View : trimming text doesn't work because tags are not closed properly

php - Drupal - 如何以编程方式更新 CCK NodeReference 字段?

php - 如何在 drupal 6 中创建自己的钩子(Hook)?

Drupal Facebook 连接功能

Drupal, View : using AJAX to load the complete node?

drupal - 创建表单提交时如何自动设置 CCK 节点引用字段的值

drupal-6 - 当前页面中上一页的链接

drupal - 如果编辑或添加表单,如何在 drupal 节点表单中检测?