[ic] exclude image display for a emty field

Aaron Hazelton aaronmail at hazenet.net
Fri Apr 9 08:37:20 EDT 2004


On Fri, 09 Apr 2004 11:14:15 +0000, Maria Rossier 
<mariannerossier at hotmail.com> wrote:

> Hi,
>
> I am a IC newbie. I use a new mysql table: news. Now I only want to 
> display the content of my imagefield when there is an image available 
> (not a image-cross when the field is empty).  I tried the the IF FIELD 
> tag but it didn't work, i think I did something wrong. How can I do this 
> ?
>
>    <img src="[news-param banner_image]">
>
> Thanks a lot,
>
> Marianne

how about

	[if-news-param banner_image]
		img stuff
	[else]
		nothing or text
	[/else]
	[/if-news-param]

this is well documented and perhaps you looked at the wrong
thing.  search for PREFIX-param on the icdevgroup site.

-- 
Aaron Hazelton
Hazenet.net


More information about the interchange-users mailing list