Download & Extend

Make the "Add reference" link usable through hook_field_extra_fields()

Project:Node Reference URL Widget
Version:7.x-1.11
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hey,
the module works like a charm for me - however there is one thing I am not entirely happy about: The module automatically adds the link it creates at the bottom of the referenced node. Would it be possible to make the link a display field I can move around like other fields? Or would that be very complicate?

The EVA module does a similar thing by presenting a display field for the view it attaches to a node.

Comments

#1

Thanks this is a good suggestion. I'd be happy to look at any patches for this functionality. My primary concern is having more than one link unnecessarily on the node or breaking existing sites that are assuming the link is in the "Links" output.

Perhaps we should clarify the link options and add another checkbox for "Create link as display field" (or something like that)? I'm not really sure how to describe it.

#2

Title:Display Field for the URL created» Make the "Add reference" link usable through hook_field_extra_fields()

Clarifying this request title.

#3

Is there a function call that we can use in contemplate to output the Add Node Reference link where ever we want in the node page? I would actually like to output this link in a block that I actually list all the referenced node fields. Something like

<?php
print node_reference_URL_outputlink();
?>

????

#4

@drupalfan81: I answered your question in your issue over here: #1333384: How to control the placement of the Link (add node reference).