Lightbox gallery

  Previous topic Next topic Print this topic Mail us feedback on this topic!
Displays a gallery that allows the viewing of images using a Lightbox layout. The images are associated with specified documents and rendered based on assigned transformations.

When writing a custom transformation for the Lightbox gallery web part, it is necessary to use the 'rel' and 'rev' parameters as highlighted in the transformation code below. The title parameter is used to determine the description of the image displayed in the lightbox.
 

<a href="<%# GetDocumentUrl() %&gt;" rel="lightbox[group]" rev="<%# Eval("NodeAliasPath") %>" title="<%# Eval("FileDescription") %>"><img src="<%# GetFileUrl("FileAttachment") %&gt;?maxsidesize=150" alt="&lt;%# Eval("FileName") %&gt;" /&gt;&lt;/a&gt;


If you would like to use multiple lightboxes on a single page, it is necessary to set a different Group name property for each lightbox web part.

Help URL: http://devnet.kentico.com/docs/webparts/index.html?lightbox_overview.htm