What about an ability to link the image to the body view of a node and not to the big image?

Comments

onepairofpants’s picture

actually, the module will already let you change that. There is a themeable function that allows you to change how the images get displayed. in your template.php file, copy the function 'theme_node_images_view' from the module file and rename it to 'yourtheme_node_images_view'. then change the lines

 if ($format == 'thumbs') {
      $output .= '<a href="javascript:void(0);" title="'.$description.'" onclick="window.open(\''.
        file_create_url($image->filepath).'\', \'\', \'height='.$height.',width='.$width.'\');">'.$thumb.'</a> ';
    }

to

if ($format == 'thumbs') {
      $output .= '<a href="'.url('node/' . $node->nid).'" title="'.$description.'" >'.$thumb.'</a> ';
    }

i think that will accomplish what you need but i haven't tested it. let me know if it works...

pebosi’s picture

great thanks

stefano73’s picture

Status: Active » Closed (fixed)