I am trying to utilize the imagefield gallery option specifically
with the 'gallery per post' setting.

This will not work as expected if one or more imagefields used
on a page are not part of the page via a node_load but present
perhaps via Views or some other form.

Basically in these cases there is no 'nid' present in the $items array
which is what is checked in the function that implements the
imagefield gallery.

The attached patch adds a check to see if the 'nid' is present via the
$node object if there is no 'nid' via the $item context.

This is in thickbox_field_formatter() function.

CommentFileSizeAuthor
thickbox.module.patch1.05 KBjaydub

Comments

frjo’s picture

Version: 5.x-2.0 » 5.x-1.x-dev
Assigned: Unassigned » frjo
Status: Needs review » Fixed

Thanks for the patch. I have committed it to 5-dev and 6-dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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