Closed (fixed)
Project:
Node Images
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2008 at 18:51 UTC
Updated:
8 Sep 2008 at 09:05 UTC
I couldn't figure out why I wasn't seeing any preview images of my photos on the Images tab until I dug in the code. It seems the hook_nodeapi() function is not loading in the node images if the settings for that node are to hide the images. This may be intended, but I think can cause confusion. I expected the images to be hidden in the node view only and not in the Images tab. I would make the following changes in the hook_nodeapi() function:
if (variable_get('node_images_position_'.$node->type, 'hide') == 'hide') return;
change to
if (arg(2) != images && variable_get('node_images_position_'.$node->type, 'hide') == 'hide') return;
This will ensure that node images are loaded into the node object when we are on the images tab, even if images are set to be hidden in the display.
Comments
Comment #1
stefano73 commentedCan you check the latest 6.2 release? http://drupal.org/node/298760
Comment #2
stefano73 commented