I am using CMS Version 1.3 and .7 of Cataloger.
I am just starting to get my head round the basics of Smarty, just by trial and error really so go slow

I would like to display different images on different pages of the site and have used the following conditional statement which works fine:
Code: Select all
{if $page == 'whatever'}
<img src="/uploads/images/logging.jpg" alt="blahblah" title="blahblah" width="314" height="236" />
{else $page =='another'}
<img src="/uploads/images/consultation.jpg" alt="blahblah" title="blahblah" width="314" height="236" />
{/if}
Using my idiot logic it should be something like this:
Code: Select all
<img src="{$image_1_url}" alt="blahblah" title="blahblah" width="314" height="236" />

Thanks.
Adam
PS. I suppose I would also need something to remove the IMG tag if the cataloger item page has no image...?