Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > lightbox webpart -> use different image for thumbnail View modes: 
User avatar
Member
Member
eagleag-yahoo - 5/3/2009 10:20:27 AM
   
lightbox webpart -> use different image for thumbnail
Hi,
I would like to have a different image for lightbox thumbnail.
I cloned lightbox webpart and added a new attribute to its Properties, named it "ThumbPath" .
When I add the new webpart in design mode i select the path for lightbox image + path for thumbnails.

I created this transformation:

<a href="<%# GetDocumentUrl() %>" rel="lightbox[group]" rev="<%# Eval("NodeAliasPath") %>" title="<%# Eval("FileDescription", true) %>"><img src="<%# GetFileUrl("ThumbPath") %>?maxsidesize=150" alt="<%# Eval("FileName", true) %>" width="100px" height="100px" /></a>


but no luck. Ie changed the transformation a few time but with no luck.

What should I do to achieve this functionality?

THANKS

User avatar
Member
Member
kentico_pavelk - 5/21/2009 6:02:46 AM
   
RE:lightbox webpart -> use different image for thumbnail
Hello,

<%# GetFileUrl("ThumbPath") %> macro inserts URL of the file stored in the column of the given name. So I would recommend you to create one additional field in your document type that will store information about path to thumbnail image. After it you can use <%# GetFileUrl("ThumbPath") %> macro.

Best Regards,
Pavel Knotek