I am creating a node template and I want to show the nicely cropped thumbnail on the page and have it link to the larger original image in a popup. I have chosen the original size image as the default output. How do I also show the cropped image? I have tried using the following code, but it returns no data at all. Am I passing the wrong info to the function? 'field_mw_image' is my field name and 'grid_image_std' is the name of the preset that I would like to display.

$nid = $node->nid; 
$fid = $node->field_mw_image[0]['fid'];
$data = $node->field_mw_image[0]['data'];
$output = theme('aef_utilities_image', array($nid,$fid,$data), 'grid_image_std');
print $output;

Thanks for your help.

Comments

nrackleff’s picture

I switched to 'aef_image_default' instead and it's working fine now. All is well.

$nid = $node->nid; 
$fid = $node->field_mw_image[0]['fid'];
$data = $node->field_mw_image[0]['data'];
$output = theme('aef_image_default', $nid, $fid, $data, 'aef_image_original_format', 'alt', 'title', '', '','', '');
print $output;
nrackleff’s picture

Status: Active » Closed (fixed)