I'm using CCK 6.x.2.2 and Drupal 6.10. If I have this module installed and allow for unlimited nodereferences, the "add another item" field doesn't display a new field on the browser screen when I click it. If I just click on the button and save, the content is created with only two node references. If I tab forward from the last visible input field, and then save, I will get an error message about the empty field, and the field (or fields if I clicked more than once) will be visible, and I can add to them and add more fields, but the "popups: add & reference" links have disappeared.
Any help would be appreciated! If you think this is a CCK issue, and I should post over there, let me know.
Thanks
Comments
Comment #1
starbow commentedDrat, this was working with cck 2.1. I will take a look.
Comment #2
starbow commentedOh, right. You will need to use the 2.x branch of this and Popups API for it to work.
Comment #3
ln282 commentedThanks for the quick reply!
Comment #4
ln282 commentedI updated to the 2.0 branch of Popups and the Popups API, and I'm still having the same problem.
Comment #5
sirkitree commentedSame here.
But also, in the case of the multiple node reference fields, I think that the link needs to be added to each instance of the field in order for the correct field to be filled out after a node is created through that popup-link's popup.
In order for this to happen, you'll have to loop through the
$form[$field_name]sI can open a separate issue for that if you want (as I'll be creating a patch for this), but I do think it's somewhat related.
Comment #6
sirkitree commentedThe patch I supplied for #388406: multiple values nodereference field seems to fix this issue.
However, the links are not returned with the AHAH response. Investigating further....
Comment #7
sirkitree commentedAfter talking with quicksketch a bit in IRC, it seems like this is more of a problem with the way CCK has written it's AHAH callback. Looking into how he has it implemented within filefield_js() and will supply a patch to them and give an update here.
Comment #8
russbollesjr commentedsubscribed
Comment #9
milos.kroulik commentedsubscribed
Comment #10
sirkitree commentedWorking on this in the issue linked in #6. Marking this as duplicate.
Comment #11
doublejosh commentedHere in the foxhole on this issue as well.