i think it will be useful to have an option in the Node reference field settings to suppres the "Add another item" button for Node Reference URL Widget
Especially for the Public Node Creation

Comments

vasike’s picture

Status: Active » Needs review
StatusFileSize
new2.87 KB

patch attached, inspired by http://drupal.org/project/custom_add_another solution.

pepemty’s picture

Sub
This seems to be what I'm looking for, but for D6 : )
I need to attach only one pic node to a description node. But only one, so I need to deactivate the Add link in the description node after the pic node is sent and approved.
I've been struggling all morning trying to do it via if/else modification in the node-description.tpl template. WSOD is all I get -- I'm not a coder...

Warm regards from sunny México!
: )
José

quicksketch’s picture

Status: Needs review » Postponed (maintainer needs more info)

I don't understand this request. Node Reference URL Widget doesn't work with multiple values at all in either D6 or D7. See #428988: Multiple reference handling.

pepemty’s picture

Sorry, Nathan. My bad.

I now know that my support request doesn't belong to this thread.

I was just trying to put the "add another..." link on a different place of my node, and I did it with this little snippet of code:

<?php
print nodereference_url_create_link($node, 'field_nodereference_toparentcontenttype', 'childcontenttype');
?>

I should have returned here before...

quicksketch’s picture

@PepeMty: Ah, yeah that's different than @vasike's suggestion above. Thanks for the followup.

vasike’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)