[ic] How to default image display

sb at airdelights.com sb at airdelights.com
Sat Apr 29 13:18:30 EDT 2006

I'm want to display an image in a simple fly page that calls the image
from items/[item-code].jpg 
If the image is not in the diretory for that part, I want interchange to
display a default image.
I have read in interchange mailing list that the data tag and if tag is
a good way to do this, but I'm having trouble getting it to work.  This
is what I have so far, but I have not been able to get it to work:

<img src=[if type=file term="items/[item-code].jpg"]
[/if] Border="0">

I want the code to lookup the image by the product code and display that
image, but if the image is not in the directory, I want the page to
display a default image 1sna.jpg.

In using the above code it does display the 1sna.jpg image, but will not
display the image item-code.
Can anyone help me with this to get it to work, or suggest a different
method for this?
Thank you

More information about the interchange-users mailing list