Node Gallery allows using of some simple CCK fields, but it doesn't work with OptionWidgets an other more complicated widgets. Here's the solution:
In function node_gallery_edit_images_form, in line 335,append the following code:
(at the end of the loop merging subforms with Manage Images form)
if (!isset($form['#field_info'])){
$form['#field_info']=$form['files'][$key]['edit_form']['#field_info'];
};
In function node_gallery_image_item_edit_form, line 450, after "$item_form=array();" append:
$display_fields['#field_info']='#field_info';
Now, OptionWidgets should works correctly. I don't know how to make patches, so I write this code directly. Sorry for may bad English.
Comments
Comment #1
dddave commented#694444: CCK fields don't work correctly is the original issue.
Comment #2
kgnet commentedHere's the modified file (just replace node_gallery.pages.inc and test)
Comment #3
dbeall commentedhere is a patch made from alpha12 using the supplied code from the zip file in #2
Comment #4
dddave commentedNo time to test it yet. However in http://drupal.org/node/633648#comment-2846404 a user reports that this thing is working. Dunno why he is posting it there but at least it is some feedback.
Comment #5
dddave commentedFirst quick test:
Radiobuttons working with text or decimal and on the gallery and on the image. Seems to be fine on the first glance...
Comment #6
noslokire commented#2 / #3 solution worked for me using Node reference fields, both with select, multi select, radios, and checkboxes, as well as using a view-node reference filter for the node reference.
Comment #7
justintime commentedSounds like everyone's had success with this, so I cleaned it up a tad and committed it. Thanks kgnet!
Comment #8
asha.gujar commentedI have used the updated patch but still cck fileds r blank in node gallary
Comment #9
asha.gujar commentedplease reply soon
Comment #10
asha.gujar commentedi have use multiple select (existing fileld)
Comment #11
dddave commentedNo need to patch just use the latest dev.
Apart from this I just tested multiple select on an existing field and it works fine for me.