Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to auto select latest Image Gallery View modes: 
User avatar
Member
Member
Stephen - 3/14/2012 3:04:55 AM
   
How to auto select latest Image Gallery
Hi,

I have a page for display photos by gallery. In document tree, under this page I add "Image Gallery" named by year (e.g 2011 yr, 2012 yr). And then add image files under each gallery.

The page design I set left hand side to use a Repeater to list all "Image Gallery" name (e.g 2012 yr, 2011 yr) by descending order. Right hand side use "LightBoxImageGallery" to list selected gallery's photos.

I success set it click on left side gallery name, then refresh right side photos.
But, no idea how to automatic load the recent gallery when first time the page loaded.
(e.g. load 2012 yr gallery and right side photos, that like I click on left side 2012 yr gallery).

Doc Tree Structure:
My Site
--- Press Photo (page)
|---- 2012 yr (Image Gallery)
|---- Photo 101 (JPG file)
|---- Photo 102
|---- 2011 yr
|---- Photo 201

Thank you very much.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/14/2012 3:56:10 AM
   
RE:How to auto select latest Image Gallery
Hello,

Could you please let me know which gallery is loaded now on the first load? You can create a custom macro for checking if the current request is a postback. If no, display you most recent gallery.

Best regards,
Boris Pocatko

User avatar
Member
Member
Stephen - 3/21/2012 7:02:21 AM
   
RE:How to auto select latest Image Gallery
Actually, I don't know to load the "2012 yr" image gallery's and its photos for first time load.

Thanks.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/26/2012 9:05:19 AM
   
RE:How to auto select latest Image Gallery
Hello,

Regrettably, I am not sure, what do you mean. Could you please describe the issue in more detail? For examples some screenshots could help me to understand the issue.

Best regards,
Boris Pocatko