kentico_radekm
-
2/9/2010 11:35:20 AM
RE:How to add Image Title in Lightbox SelectedItem
Hello.
Do you want to use lightbox for images uploaded as attachments of CMS.File document type? If so, could you please try to use following transformation?
Transformation: <a style="text-decoration:none;" href="<%# GetDocumentUrl() %>" rel="lightbox[files]" rev="<%# Eval("NodeAliasPath") %>" title="<%# HTMLEncode(ResHelper.LocalizeString(Convert.ToString(Eval("FileName")))) %>"> <%# GetImageByUrl(GetDocumentUrl(), 200) %> </a> <br />
Selected item transformation: <table> <tr> <td> <div style="background-color: #dddddd; border:solid 1px #000000; padding-bottom: 100px;"> <div style="margin-top: 25px; font-size: 14pt; color: #184D6B;"> <%# HTMLEncode(ResHelper.LocalizeString(Convert.ToString(Eval("FileName")))) %> </div> <div style="margin-top: 20px;font-size: 14pt; color: #333333;"> <%# GetImageByUrl(GetDocumentUrl()) %> </div> </div> </td> </tr> </table>
Best Regards, Radek Macalik
|