# Summary

The Node Reference URL Widget module adds a new widget to the Node Reference field type. It auto-populates a node reference field with a value from the URL, and does not allow this value to be changed once set. It can automatically provide a link on the referencing node types, that will contain the proper URL to prepopulate the field.

# Project URL

https://www.drupal.org/project/nodereference_url

# Where is the code?

Unknown

# Estimated completion date

Unknown

# Dependencies

Unknown

# Who's doing the port?

Unknown

# What help do they need?

Unknown

# D8 roadmap

Unknown
Use https://www.drupal.org/project/prepopulate instead.

# Background and reference information

https://www.drupal.org/project/nodereference_url

Comments

Patrick Storey created an issue. See original summary.

jibran’s picture

Issue summary: View changes

I have written https://www.drupal.org/project/userreference_url from this and there is no open issue for it. It seems @quicksketch doesn't maintain the queue for nodereference_url at all last 4 years ago and 63 open issues. I should apply for co-maintainership for nodereference_url.

IMO reference will be completely replaced by entityreference in D8 because ER is in core now. We don't need to port nodereference_url or userreference_url at all. The future is #2615320: [entityreference_prepopulate] Entityreference prepopulate.

For me this is a won't fix.

webchick’s picture

Title: [nodereference_url] Node Reference URL Widget » [nodereference_url] Node Reference URL Widget (use Entityreference prepopulate instead)
Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#2615320: [entityreference_prepopulate] Entityreference prepopulate

Makes sense to me. We can always change it back if the maintainers disagree.

System Lord’s picture

jibran,

We don't need to port nodereference_url or userreference_url at all. The future is...

I'm nearly ready to launch my site (D7), which depends on the Node Reference URL Widget. Are you saying Entityreference in D8 provides the same functionality right now - for nodes?

jibran’s picture

Title: [nodereference_url] Node Reference URL Widget (use Entityreference prepopulate instead) » [nodereference_url] Node Reference URL Widget (use Prepopulate instead)
Issue summary: View changes

Unfortunately, there is no direct port of Node Reference URL Widget and there is also no D8 version of https://www.drupal.org/project/entityreference_prepopulate but you can use https://www.drupal.org/project/prepopulate instead.

colan’s picture

Please also be aware of the work started in #2849432: Simplify Prepopulate implementation with the Entity API.

System Lord’s picture

jibran, I don't mean to beat this question to death, and I don't need to know HOW to set it up, but only that it does perform the same as Node Reference URL (I'll figure it out if you're certain it will work). So, to be as specific as possible, are you saying project/prepopulate (along with it's required ancillary modules), will:

Supply a node/add/?? link on the referenced node, that when a user clicks on it it will it will jump to the node/add form and automatically be associated/referencing the referenced node (node/add/[ref]), WITHOUT the user having to select/enter the reference?

The beauty of NRURL is that user's don't have to do anything but click a link and create the form. Preliminary testing (i.e., very little) of prepopulate seems to still require users select the reference. To be honest, I got frustrated trying to make it work and lost patients. I'm now ready to put the time into figuring it out, but it would be nice to know, first, if it really will have the same functionality. I guess I'm hoping you've actually seen this work.

Thank you!

tawellman’s picture

System Lord,

Did you ever find a comparable solution? I am trying to migrate a site that used Node Reference URL Widget a lot. I am struggling to come up with something that works the same.