The module works great.

I made a cck content type called "application". As a node reference, I pass the node id of an event:

node/add/application/43

where 43 is an event id.

The node title shows perfectly up in the node/add form.

Now I'm looking for an easy way to display the date of the event (which is another field in the event cck content type).

Has anyone an idea how to do this?

Application form:

Eventname (from parameter of nodereference_url module)
Eventdate (field of event node referenced above)

Comments

quicksketch’s picture

This 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.

tstackhouse’s picture

I 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.

quicksketch’s picture

Status: Active » Closed (fixed)

As noted in #1, this is a general Node Reference question. Not one directly related to this module.

tstackhouse’s picture

Given 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.

tstackhouse’s picture

StatusFileSize
new2.35 KB

It 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).

bneel’s picture

Have a look at this page :
http://drupal.org/node/290443

tstackhouse’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Category: support » feature
Status: Closed (fixed) » Needs review
StatusFileSize
new2.34 KB

I 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.

quicksketch’s picture

Status: Needs review » Closed (won't fix)

I 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.)

tstackhouse’s picture

I 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.