[prev in list] [next in list] [prev in thread] [next in thread] 

List:       interchange-users
Subject:    RE: [ic] How to default image display
From:       "Daniel Davenport" <DDavenport () newagedigital ! com>
Date:       2006-04-30 14:35:42
Message-ID: 6646EB737DB9164B9A6992E17A47DC7413BBF8 () mssbs01 ! NewAgeDigital ! local
[Download RAW message or body]

 

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


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
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic