Theming image with imagacache
Submitted by edex on Fri, 06/06/2008 - 05:26.
To theme cck imagefield with imagecache, make sure imagecache is working. Replace 'featuredsmall' with the imagecache name. Copy the imagefield name and adjust code below.
<?php print theme('imagecache', 'featuredsmall', $node->field_photo[1]['filepath'], $alt = $node->field_photo[1]['alt'], $title = $node->field_photo[1]['title']) ?> Source

Post new comment