Hello,
I want to display images inside a div tag. I want to check if there is a image assigned to a weblog field and if not to display a default image.
I’ve written this code but it doesn’t work. If there is a image assigned it displays it but it doesn’t display the default image. The path to the image is correct.
<div id="left_clmn">
{exp:weblog:entries weblog="{embed:currentweblog}"}
{if left_image}
{left_image}
{if:elseif left_image == ""}
<img src="{site_url}images/interface/synthesi.jpg" alt="">
{/if}
{/exp:weblog:entries}
</div>
Thank you in advance
