Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Image Display View modes: 
User avatar
Member
Member
shinoj1010-yahoo - 4/20/2012 4:52:42 AM
   
Image Display
How to show images added in cms desk treeview in an asp.net page ?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 4/20/2012 7:13:43 AM
   
RE:Image Display
Hello,

Every image can be referenced a certain way. It depends, how the image was uploaded. For example if the image was saved as an attachment then you can use the approach below:

<a href="www.domain.com/getattachment/attachmentguid/fileName.ext" >
This is a link
</a>

The attachmentguid is a variable pointing to the given attachment. If you would use our transformation then the above code would look something like this:

<a href="www.domain.com/getattachment/<%# Eval("customField")%>/fileName.ext" >
<%# Eval("DocumentName") %>
</a>

Best regards,
Boris Pocatko

User avatar
Member
Member
shinoj1010-yahoo - 4/24/2012 4:01:49 AM
   
RE:Image Display
Thanks for the replay,

My porblem is little different, I have created an Image folder in tree and added images to that folder. Need to show these images as a gallery in template aspx page.

User avatar
Member
Member
kentico_michal - 4/30/2012 5:17:09 AM
   
RE:Image Display
Hi,

You can use standard Image gallery web part to display your images. Here is an example:


<%@ Register Src="~/CMSWebParts/viewers/Documents/imagegallery.ascx" TagName="ImageGallery" TagPrefix="uc1" %>

<uc1:ImageGallery runat="server" ID="ImageGallery" Path="/Images/%" ThumbnailTransformation="CMS.File.imagegallery_thumbnails200" PagingMode="querystring" Columns="3" RowsPerPage="3" EnableViewState="false" />


Best regards,
Michal Legen