Bug #9821 Bug Fixed

Testing for image field type

Version: EE 2.0.0b02 20091023 Reporter: Sue Crocker

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When I want to display an image field, the value for the field displays as an http://example.com/images/uploads/filename.jpg or whatever the file is.

So I’m thinking.. if the field has something in it, put img src code in there.

However, no matter what I do, I can’t seem to test for an empty field.

Tried things like:

{if image}This is an image file{/if}

as well as if image !=’’ and the like. It doesn’t matter if there is anything in the field or not, it acts like it is.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases