-
Programmatically displaying an image using an imagecache preset
The following illustrates one way to render an image using an Imagecache preset. Naturally, if your imagefield has multiple uploads you could wrap this in a foreach.
1234$path = $node->field_pgallery_images[0]['filepath'];$alt = $node->field_pgallery_images[0]['data']['alt'];$title = $node->field_pgallery_images[0]['data']['title'];print theme('imagecache', ‘presetname’, $node->field_pgallery_images[0]['filepath'], $alt, $title, $attributes);