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

RE: [ic] How to default image display


 

> -----Original Message-----
> From: suppressed 
> [mailto:suppressed On Behalf 
> Of Gert van der Spoel
> Sent: 2006 April 29 -- Saturday 12:47 PM
> To: suppressed
> Subject: Re: [ic] How to default image display
> 
> suppressed 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"]  ... 


You could also use the [image] tag...by default, it won't spit out
anything unless the image exists.

[either][image src="items/[item-code].jpg" border=0][or]<img
src="items/1sna.jpg" border=0>[/either]

The [either] tag can be kinda picky, though...don't have anything --
even whitespace -- but the [image] tag between [either] and [or], or
your default image probably won't ever display (as the first section
will never be blank).

--
Daniel Davenport
New Age Digital
http://www.newagedigital.com

_______________________________________________
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.