Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
# 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.
Comments
Comment #2
jibranI 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.
Comment #3
webchickMakes sense to me. We can always change it back if the maintainers disagree.
Comment #4
System Lord CreditAttribution: System Lord commentedjibran,
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?
Comment #5
jibranUnfortunately, 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.
Comment #6
colanPlease also be aware of the work started in #2849432: Simplify Prepopulate implementation with the Entity API.
Comment #7
System Lord CreditAttribution: System Lord commentedjibran, 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!
Comment #8
tawellman CreditAttribution: tawellman as a volunteer commentedSystem 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.