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
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 17, 2011 12:05pm
Subscribe [2]#1 / Jan 17, 2011 12:05pm
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
Easy. If your custom field is called “image” then simply:
{if image}
{image}
{/if}#3 / Jan 17, 2011 12:55pm
Yes, I have just found it…
Thanks for getting back to me! 😉