[ic] How to default image display
DDavenport at newagedigital.com
Sun Apr 30 10:35:42 EDT 2006
> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org
> [mailto:interchange-users-bounces at icdevgroup.org] On Behalf
> Of Gert van der Spoel
> Sent: 2006 April 29 -- Saturday 12:47 PM
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] How to default image display
> 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"] ...
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
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).
New Age Digital
More information about the interchange-users