I can't seem to get the thumbnails to show in the teaser with Imagecache.
I am using this to show the images in the full node:
<?php if ($field_storyimage): ?>
<?php print $node->field_storyimage[0]['view']; ?>
<?php endif; ?>It, of course, works.
In the teaser I have tried the following, but none work:
<?php if ($field_storyimage): ?>
<?php print theme('image', 'files/imagecache/smaller200/'. $node->field_storyimage[0]['filepath']); ?>
<?php endif; ?><?php if ($field_storyimage[0]['view'] > '' ) : ?>
<?php foreach($field_storyimage as $item) { ?>
<?php print '<img src="/files/imagecache/smaller200/'.$item['filepath'].'" title="'.$item['title'].'" alt="'.$item['alt'].'">'; ?>
<?php } ?>
<?php endif; ?>The last one I use on a D5 site and it displays the intended results.
--
Subir
Comments
Comment #1
subir_ghoshThe problem was with ImageAPI ImageMagick. Replacing it with ImageAPI GD2 works.
And of course, the last code is fine.
Comment #2
quicksketchGreat, thanks for the follow up.