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

Usamah M. Ali usamah1228 at gmail.com
Wed Jun 17 14:45:23 UTC 2009


Hello Shai,

Your approach seems rather complicated, but you might have good reasons for
that.

The straightforward way to do this in Drupal with Views is to create a "user
reference" to that user's account. If you're using a whole new content type
for authors in order to leverage the goodies of CCK, then the Drupal core
module "Profile" provides similar powerful custom fields to choose from and
apply to your user's accounts and profile pages. It's disbaled by default
and you have to enable it first through the modules page in the admin area.

Regards,
Usamah

On Wed, Jun 17, 2009 at 5:24 PM, Shai Gluskin <shai at content2zero.com> wrote:

> 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
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090617/39327b7e/attachment.htm>


More information about the support mailing list