[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] How to default image display


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"]
[else]
	items/1sna.jpg
[/else]
[/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
steve

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.