我正在寻找灵活的方法来允许用户输入一个字段，而且还要在节点引用已经存在的情况下，该字段是节点参考。换句话说，让我们说我有一个名为Dog的内容类型，每只小狗都有一个收藏玩具的节点参考，如果玩具存在，这个字段应该是节点参考，否则应该允许用户填写。 概念上我可以想到两种方法来做到这一点。一种方式，只是为了使它成为一个字段，然后在某种方式链接到另一个节点存在。另一个是使其成为节点参考，也许以某种方式自动 - 当用户填写时，创建节点。
建议？ （使用Drupal 7）
I'm looking for a flexibly way to allow a user to input a a field, but also to have that field be a node node reference if the the node reference already exists. In other words, lets say I have a content type called dog, each dog has a node reference for favorite toy, if the toy exists, this field should be a node reference, otherwise the user should be allowed to fill it in. Conceptually I can think of two way to do this. One way, is just to make it a field, and then somehow link to another node if it exists. The other is to make it a node reference, and perhaps somehow auto - create the node when the user fills it in.
Recommendations? (using drupal 7)
instead of node references you could use term references and then use the Autocomplete Deluxe module to have the user select existing terms or add new terms.
Actually, they there is support for references with Autocomplete Deluxe for References.