Page 1 of 1

Displaying text if Product Image is not available.

Posted: Thu Jul 24, 2008 10:40 am
by Mike718NY
For the Product page image, "ImageURL", I want to display
some text if there is not image available (NULL in the database).

ShowProduct.htm

If [[ConLib:ProductImage ShowImage="Image"]]
then <font> some text . . . .

Can this be done? thanks

Re: Displaying text if Product Image is not available.

Posted: Thu Jul 24, 2008 11:00 am
by mazhar
Hopefully it will help you

Code: Select all

#if($Product.ImageUrl.Length==0)
//Your Custom Text
#else
[[ConLib:ProductImage ShowImage="Image"]]<br />
#end

Re: Displaying text if Product Image is not available.

Posted: Thu Jul 24, 2008 12:28 pm
by Mike718NY
That worked. Thanks Mazhar.