So I need something like this:
Code: Select all
{assign var="articleImg" value="uploads/images/{$entry->title}.jpg"}
{ if file_exists($articleImg) }
<a href="{$entry->link}"><img src="uploads/images/{$entry->title}.jpg"
alt="{$entry->title}" /></a>
{/if}
This is probably a simple syntax issue, but I am just not getting this to work.
Any ideas?