[SOLVED] Using Conditional Statements to display Cataloger Images in template?
Posted: Wed Jul 16, 2008 8:03 am
Hi,
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:
What I would like to do is display the image assigned in a cataloger item pages as this would make the image selection automatic.
Using my idiot logic it should be something like this:
However it seems you can't put cataloger tags in the template, perhaps I am missing some code? ... If anyone could shed some light I would be very happy. 
Thanks.
Adam
PS. I suppose I would also need something to remove the IMG tag if the cataloger item page has no image...?
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...?