Technical support This forum is closed.
Version 1.x > Technical support > Problems with Image Gallery View modes: 
User avatar
Guest
MartyNZ - 3/22/2006 2:40:11 AM
   
Problems with Image Gallery
I've got the Image Gallery working in a website I'm building (Trialling your product) except for a couple of small issues.

1. The default gallery page uses the preview transformation that doesn't seem to have any control over the maximum size of the image (pixels), is there any way to control the size of the image displayed?

2. In the thumbnail view I lose the images used in other parts of the page ie. site banner etc. The control appears to change the path of the image to within the gallery folder. How do I stop this?

I'm using VS 2005 an VB.NET.

cheers
Martyn

User avatar
Guest
MartyNZ - 3/22/2006 3:06:56 AM
   
Re: Problems with Image Gallery
Problem 2 solved with <% ResolveURL("~/") %>

cheers
MartyNZ

User avatar
Guest
MartyNZ - 3/22/2006 3:22:53 AM
   
Re: Problems with Image Gallery
Also:
I'd like to be able to list gallery folders (in my case 'Projects') as a vertical menu on the left of the page, and have the project name and description being viewed displayed at the top of the gallery thumbnail and detail pages. How can I achieve this?

User avatar
Guest
admin - 3/23/2006 2:31:36 PM
   
Re: Problems with Image Gallery
Could you please send me a screenshot of your page to petr.palas@kentico.com so that I can have a better idea of your situation?

Thank you.

Best Regards,

User avatar
Guest
admin - 3/23/2006 2:30:43 PM
   
Re: Problems with Image Gallery
Hello,

Regarding the first question: if you want to control the size, you need to modify the preview transformation and add additional URL parameter to the GetFile.aspx call like this:

ImageUrl='<%# ResolveUrl( "~/GetFile.aspx?maxsidesize=100&filepath=" + Kentico.CMS.CMSDesk.Functions.UrlPathEncode(DataBinder.Eval(Container, "DataItem.GalleryTeaser"))) %>'

Best Regards,

User avatar
Guest
MartyNZ - 3/23/2006 11:05:58 PM
   
Re: Problems with Image Gallery
Thanks,
that issue sorted.