ASPX templates
Version 5.x > ASPX templates > Image with description in image gallary View modes: 
User avatar
Member
Member
spmishra-cygnet-infotech - 3/1/2011 11:40:23 PM
   
Image with description in image gallary
hi,

my senario is
i want to display all images with large image size and with description in verticle manner
i mean first image with description and then one hr line n then second image with description it should display ...

pleaes guide me asap...

and yes i hav created media libarary but when i m taking image gallary i m not able to
find media libarary path in path parameter of image gallary web part.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/8/2011 7:23:59 AM
   
RE:Image with description in image gallary
Hi,

If you defined a media library, you do not need to set the Path property in the MediaGallery webpart. To select appropriate media library, please use Media library* property.

To display image as requested (using vertical layout with description), you can use following transformation:

<%@ Register Src="~/CMSModules/MediaLibrary/Controls/LiveControls/MediaFilePreview.ascx" TagName="MediaFilePreview" TagPrefix="cc1" %>

<div class="MediaGalleryDetail">
<cc1:MediaFilePreview ID="filePreview" runat="server" Width="200" Height="200" maxsidesize="530" />
<br/>
<%# CMS.GlobalHelper.ResHelper.GetString(Convert.ToString(Eval("FileDescription", true))) %>
</div>


Please check Display active content property to display images correctly.

Best regards,
Ivana Tomanickova