Hello Shai,<br><br>Your approach seems rather complicated, but you might have good reasons for that.<br><br>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.<br>
<br>Regards,<br>Usamah<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 5:24 PM, Shai Gluskin <span dir="ltr"><<a href="mailto:shai@content2zero.com">shai@content2zero.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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:<br><br>Drupal setup: D6 with latest versions of cck and views.<br>
<br>Content type 1: Books<br>Content type 2: Authors<br><br>"Books" has a "node reference" field to "Authors"<br><br><b>Problem</b>: 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.<br>
<b>Desired functionality</b>: 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.<br>
<br>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.<br><br>Can triggers and actions do this, maybe?<br><br>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.<br>
<br>Thanks,<br><font color="#888888"><br>Shai<br>
</font><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>