Right now I am using imagecache to generate thumbnails for teasers for nodes created via CCK, Imagefield, and Contemplates. Everything is fine except that when I do not upload a picture for the article there is a broken image link in the teaser when viewing through IE. You can see an example of this at http://chibabeat.com/articles-stories. For the template code I am just using the theme code from the README file. Is there something I can add to this code to maybe use a universal image if there was no image uploaded? If not, is there anything I can add to take away this broken image link?

Comments

dopry’s picture

Status: Active » Fixed

The default theme_imagefield_image function checks of the file exists before creating the image tag. You may try this in your theme function... or just checking if the filepath is empty would probably work.

Anonymous’s picture

Status: Fixed » Closed (fixed)