Using Drupal Prepopulate Module with Node Reference

In a few words. Yes it works but dont parse the node title, parse the nid.

It will probably have a name like noderef_field_name][0][nid][nid] - so add square brackets around the array name and remove one of the [nid] references.

Like - <a href="/node/add/thing?edit[noderef_field_name][0][nid]=<?php print $nid; ?>>link to node reference</a>

in


Comments

not working for me

Anonymous's picture

I tried this but in my nodereference field all I see is  "[nid:$132]"

 

Any idea what I could be doing wrong?

Did we solve this on

mark's picture

Did we solve this on Drupal.org already?

Worked Perfectly

Allain Lalonde's picture

Thanks

If you are working with

Eidaho's picture

If you are working with entity reference module, have a look at this issue:
http://drupal.org/node/1263118

Post new comment

The content of this field is kept private and will not be shown publicly.