ASPX templates
Version 5.x > ASPX templates > Image as hyperlink in transformation View modes: 
User avatar
Guest
patrik.volka-hotmail - 10/18/2010 3:40:02 AM
   
Image as hyperlink in transformation
Hello,
Where can I deal with the problem which I encountered recently. I created the transformation:
<div style="float:left; margin:10px;">
<%# GetImage("WorksImage", 350, 250) %>
</div>
<div style="float:left; margin-top:35px; color:#92929b;">
<b style="font-family:Tahoma; font-size:20px; font-weight:bold; color:#ffcc00;"><%# Eval("WorksName") %></b>
<p>Client:  <%# Eval("WorksClient") %></p>
<p><%# Eval("WorksSummary") %></p><br />
<a style="border:none; text-decoration:none;" href="<%# GetDocumentUrl() %>"><img src="../app_themes/InteractiveDesignStudio/images/viewProject_En.png" /></a>
</div>

The problem is that I do not see the image, which I like a hyperlink to view detailed information.
Maybe it is just some simple thing overlooked, but yet I failed to figure out how to view the image.

Thanks for any advice.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/18/2010 4:48:37 AM
   
RE:Image as hyperlink in transformation
Hi,

Could you please try to replace:
<a style="border:none; text-decoration:none;" href="<%# GetDocumentUrl() %>"><img src="../app_themes/InteractiveDesignStudio/images/viewProject_En.png" /></a>

with

<a style="border:none; text-decoration:none;" href="<%# GetDocumentUrl() %>"><img src="~/app_themes/InteractiveDesignStudio/images/viewProject_En.png" /></a>


Could you please describe your folder structure if the above modification does not help?

Best regards,
Ivana Tomanickova

User avatar
Guest
Patrik Volka - 10/18/2010 5:09:12 AM
   
RE:Image as hyperlink in transformation
Thank you very much, it is working already. It was so easy to make it work, i dint know why i did not solve the problem on my own.