marie
-
1/22/2007 7:09:10 PM
Re: if statement inside transformation
Persun,
Here is what I have put in my transformation:
This is the image that will always display::::
<img src="<%# ResolveUrl("~/GetFile.aspx?filepath=" + Kentico.CMS.TreeEngine.Functions.UrlPathEncode(DataBinder.Eval(Container, "DataItem.ProductPhoto"))) %>"/>
This is the image that will display if there is an image in this field:
<asp:Image Runat="server" ImageUrl='<%# ResolveUrl( "~/GetFile.aspx?filepath=" + Kentico.CMS.TreeEngine.Functions.UrlPathEncode(DataBinder.Eval(Container, "DataItem.ProductPhoto2"))) %>' Visible='<%# Kentico.CMS.TreeEngine.Functions.NotEmpty(DataBinder.Eval(Container, "DataItem.ProductPhoto2")) %>'></asp:Image>
Good Luck.
|