Hey there, this module is really great thanks!

I would love if we could have support for nodereference autocomplete fields, and not only for select lists. I have a node type where I want users to refer to 'places' but they can add nodes, from the place itself, or also from a add/event page.

To keep things simple, the add/event page has a autocomplete field on it so they can check if the place already exists, but this then breaks the prepopulate fonctionnality. What kind of work would be needed for this?

Is it possible to add support for that?

Thanks,
Patchak

Comments

Mark Theunissen’s picture

Status: Active » Closed (won't fix)

Hi Patchak

I'm a user of prepopulate, and it works for my autocomplete nodereference fields. The syntax is as follows:

/node/add/NODETYPE?edit[FIELDNAME][0][node_name]=NODETITLE

So, if NODETYPE is an image, and the field was called Related Node, and I wanted it to reference an existing node with a title "African Java Cafe", then it would be:

node/add/imagecache-image?edit[field_related_node][0][node_name]=African Java Cafe

It works off the referenced node's name or title, not it's node id - that's important.

Hope that helps
Mark

gagarine’s picture

Don't work on D6 :(
See http://drupal.org/node/258449