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

dddave’s picture

Status: Active » Needs review
kgnet’s picture

StatusFileSize
new6.14 KB

Here's the modified file (just replace node_gallery.pages.inc and test)

dbeall’s picture

StatusFileSize
new1.43 KB

here is a patch made from alpha12 using the supplied code from the zip file in #2

dddave’s picture

No 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.

dddave’s picture

First quick test:

Radiobuttons working with text or decimal and on the gallery and on the image. Seems to be fine on the first glance...

noslokire’s picture

#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.

justintime’s picture

Assigned: Unassigned » justintime
Status: Needs review » Fixed

Sounds like everyone's had success with this, so I cleaned it up a tad and committed it. Thanks kgnet!

asha.gujar’s picture

I have used the updated patch but still cck fileds r blank in node gallary

asha.gujar’s picture

please reply soon

asha.gujar’s picture

i have use multiple select (existing fileld)

dddave’s picture

No 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.