Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Image gallery SortOrder View modes: 
User avatar
Member
Member
Alex - 4/18/2011 9:22:39 AM
   
Image gallery SortOrder
I use Image gallery and check loading images by 4 rows and 3 columns
Order by NodeOrder ASC

And images sorted at first by columns from up to down. But I need sortind across rows from left to right.
Where and how can I modify it?

User avatar
Member
Member
kentico_michal - 4/18/2011 1:12:08 PM
   
RE:Image gallery SortOrder
Hello Alex,

You can modify the Image gallery web part (~\CMSWebParts\Viewers\Documents\ImageGallery.ascx.cs) to change the order direction. You will need to set a RepeatDirection property of the lstImages datalist to RepeatDirection.Horizontal instead of the default value RepeatDirection. You can do so in SetupControl()method:

// Repeat properties
lstImages.RepeatColumns = Columns;
lstImages.RepeatLayout = RepeatLayout;
//lstImages.RepeatDirection = RepeatDirection;
lstImages.RepeatDirection = RepeatDirection.Horizontal;


Best regards,
Michal Legen

User avatar
Member
Member
Alex - 4/19/2011 2:25:18 AM
   
RE:Image gallery SortOrder
Thank you all now works as expected