Theme function with Imagecache

Set up a new Imagecache preset at admin/build/imagecache/add name it to something like 'myimagecachepreset'.
In your template file you can remove print $content: and add the code below. and the rest of the content, like print $node->body;.

If your image is in $content you can edit your content-type and set "List field: Enabled" to release it.


<?php
print theme('imagecache', 'myimagecachepreset', $node->field_news_image[0]['filepath'], $node->field_news_image[0]['alt'], $node->field_news_image[0]['title'], array('class'=>'large_teaser_image'));
?>
Knowledge keywords: