Closed (won't fix)
Project:
Prepopulate
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2008 at 14:10 UTC
Updated:
31 Aug 2008 at 20:36 UTC
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
Comment #1
Mark Theunissen commentedHi 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
Comment #2
gagarine commentedDon't work on D6 :(
See http://drupal.org/node/258449