Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Wrong lightbox "next button" behaviour in paging mode View modes: 
User avatar
Member
Member
mphzack-hotmail - 10/28/2010 7:36:50 AM
   
Wrong lightbox "next button" behaviour in paging mode
Hi!
Consider I create lightbox gallery with 40 images, turn on paging with 20 images on 1 page. After that I opened first image on first page, look at image and than push "Next" button. So, when I repeat this 20 times I see last image on first page. Logically, I wish to see "Next" button to navigate image 21, that is the first image on second page. But current release of Lightbox "thinks" that my gallery is over and do not show me "Next" button, so I must close lightbox, select second page and after that click on first image to continue browsing. It is an issue, becase not all users realise that my gallery have more than 20 images and stop browsing on last image of the first page (it's intuitive action), and every user find very annoying closing lightbox, changing page and opening lightbox again. Is there any workaround about my problem?

Regards,
Dmitry

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 11/2/2010 4:47:26 AM
   
RE:Wrong lightbox "next button" behaviour in paging mode
Hi,

Actually, this behavior is correct. If the paging is enabled, information about 20 images is selected from the database and html code contains only these 20 pictures. That is the reason why lightbox display only 20 pictures without possibility to continue with picture number 21.
If the paging is enabled, you tell the system to display only 20 images. Images 21-40 should be display after clicking on page number 2.

To achieve your goal you will need to create your custom webpart, selecting all data from the database, but displaying only requested number.

Best regards,
Ivana Tomanickova