[support] Node Reference Functionality to Create New Node When Referenced Node Doesn't Exist

Shai Gluskin shai at content2zero.com
Wed Jun 17 14:24:53 UTC 2009


Before I submit a feature request on the overworked Views issue queue --
please tell me there is a helper module that already does this OR some kind
of solution for this problem:

Drupal setup: D6 with latest versions of cck and views.

Content type 1: Books
Content type 2: Authors

"Books" has a "node reference" field to "Authors"

*Problem*: in order to successfully complete the form: node/add/books the
author of the book you are adding most already have a record previously
entered at node/add/authors.
*Desired functionality*: When you type in the name of the author to the
autocomplete field and then click submit, instead of getting an error,
"Author: found no valid post with that title", Drupal would go ahead and
create that new node with John Steinbeck as its title. Obviously, the the
Authors content-type couldn't have any required fields other than title.
Drupal could assign the author to be the logged in user.

I'm hoping someone is going to tell me that there is a module for this or
that Views2 can even do it already and that I just missed the settings.

Can triggers and actions do this, maybe?

It's a huge UI problem to tell the user to create two nodes in a particular
order when they just want to do one thing.

Thanks,

Shai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090617/d95cb575/attachment.htm>


More information about the support mailing list