ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Show/Not show image

January 17, 2011 12:05pm

Subscribe [2]
  • #1 / Jan 17, 2011 12:05pm

    koogarsox

    27 posts

    Hi I need a little help.

    I want to display the image if one has been uploaded to the page by the client, but if they havent uploaded one I dont want a broken image showing.

    Can someone help?

    Is it an if statement I need?

    Thanks in advance
    Amanda

  • #2 / Jan 17, 2011 12:51pm

    Tony Geer

    253 posts

    Easy. If your custom field is called “image” then simply:

    {if image}
    {image}
    {/if}
  • #3 / Jan 17, 2011 12:55pm

    koogarsox

    27 posts

    Yes, I have just found it…

    Thanks for getting back to me! 😉

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

ExpressionEngine News!

#eecms, #events, #releases