Portal Engine
Version 2.x > Portal Engine > problems with image gallery View modes: 
User avatar
Member
Member
marie - 2/7/2008 8:59:45 PM
   
problems with image gallery
We have a client with a large image gallery of about 75 pictures. The image gallery works fine when it displays them in the columns and rows on the site - but when you click in to view the 'detailed' or larger image - as soon as you get to picture number 50 - all of the images 50 thru 75 show the same large image (the number 50 image)?

I don't understand why this is happening and can't seem to figure this out.

We are using version 2.3a.

Any help is greatly appreciated.

Thanks.

User avatar
Member
Member
marie - 2/7/2008 9:05:22 PM
   
RE:problems with image gallery
It also appears to be happening in version 3.0. When you get to the 50th image it starts messing up.

User avatar
Member
Member
kentico_petrpa - 2/12/2008 12:00:38 PM
   
RE:problems with image gallery
Since Kentico CMS version 3.0 is this set to 500 by default.

User avatar
Member
Member
kentico_petrpa - 2/12/2008 12:01:12 PM
   
RE:problems with image gallery
A number of pages displayed by a data pager related to the 'Image gallery' web part is set to 50 by the default. This is reason why image gallery works fine for first 50 images and then renders the same image for every thumbnail above.

Could you please modify the file "~\CMSWebParts\Viewers\ImageGallery.ascx.cs"? Please find the method "pagerElem_OnDataSourceChanged" and add the following statement to the code on the line 623:

this.PagerControl.MaxPages = XYZ; // XYZ is value specifying number of items displayed by repeater (let's say '300')


Please note XYZ represents maximum number of pages displayed and rendered by data pager so you can specify it as necessary.