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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Disable_Add_Another_Item_button_option-1256332-1.patch | 2.87 KB | vasike |
Comments
Comment #1
vasikepatch attached, inspired by http://drupal.org/project/custom_add_another solution.
Comment #2
pepemty commentedSub
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é
Comment #3
quicksketchI 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.
Comment #4
pepemty commentedSorry, 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:
I should have returned here before...
Comment #5
quicksketch@PepeMty: Ah, yeah that's different than @vasike's suggestion above. Thanks for the followup.
Comment #6
vasike