Closed (won't fix)
Project:
Node Reference URL Widget
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2010 at 17:40 UTC
Updated:
5 Apr 2011 at 15:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThis question is not relevant to Node Reference URL Widget. This module merely creates the link and prepopulates the field on the form, it doesn't affect the display of Node References in any way.
Comment #2
tstackhouse commentedI think he's looking to do almost the same exact thing I'm looking to do. I want to display the (entire) node that I'm referencing on the create/edit form. I'm currently exploring how to accomplish this with views & arguments, but if there's an easy way to do it differently, I'd love to hear it.
EDIT:
I've managed to get that working, creating a view of nodes, filtering the type, setting the argument to php, with 'return arg(3)' to grab the NID from the url, and setting to not display if the argument isn't present. If you than make it a block display and set the visible paged only to the node creation page it works perfectly. There is a slight flaw in this in that it won't work on the edit page. I'll need to work on that.
Comment #3
quicksketchAs noted in #1, this is a general Node Reference question. Not one directly related to this module.
Comment #4
tstackhouse commentedGiven the circumstance of the OP, I'd be inclined to agree with that assessment, however what I would like to accomplish, I think, is still relevant, since I want to display the referenced node when I'm displaying the form, which, at least to my knowledge, would be much more plausible with this module, since the form element is being overridden and presenting the title of the node embedded in the form. I would think it would be fairly trivial, looking over the code, to add an option to the widget settings to display the full node.
I'll look into it, and if I can figure out how to generate a patch, I'll submit it here.
Comment #5
tstackhouse commentedIt could probably use some more tweaking, but here's a working patch that provides teaser & full view options (along with disabling the links to prevent weird cyclical references).
Comment #6
bneel commentedHave a look at this page :
http://drupal.org/node/290443
Comment #7
tstackhouse commentedI like how this just kind of fell off, I actually just had another circumstance where this exact functionality is required, and my patch that I posted here still works, albeit I had to manually make one of the changes. Here's an updated patch that makes this great little feature possible. I'm glad I rediscovered this patch.
Comment #8
quicksketchI don't plan on adding this functionality. If you'd like to do this in your own site, you can do it by overriding theme_nodereference_url() in your template.php file. Then you can load the node and display whatever you like (title, full, teaser, individual fields, etc.)
Comment #9
tstackhouse commentedI see. At least this will be here if anyone wants this for the future. The main reason I have this like so is to allow the referenced node to be visible in its entirety on the node form, instead of just a hyperlinked title.
Cheers.