[ic] How to default image display

Gert van der Spoel ic at 3edge.com
Sat Apr 29 12:47:06 EDT 2006


sb at airdelights.com writes: 

> 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"> 
> 

just a wild guess but try 

[if type=file term="images/items/[item-code].jpg"]  ... 




More information about the interchange-users mailing list