+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sort Order for Image Gallery

Sort Order for Image Gallery

4 posts, 0 answered
  1. Jay
    Jay avatar
    51 posts
    Registered:
    16 Jul 2008
    02 Dec 2008
    Link to this post
    I created an Image Library and filled it with 10 images.  I then used the Image Gallery control to place them on a page and generate thumbnails with lightbox overlay (awesome!). 

    I'm wondering if there's a way to sort the order in which the images are displayed?  It'd be great if you could use some sort of drag/drop interface to change their order but I'd settle for being able to order by title. 

    Anyone know if this is possible?

    Thanks
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    03 Dec 2008
    Link to this post
    Hi Jay,

    Follow the instructions below:
    1. Click Edit to open Image Gallery property window.
    2. Switch to Advanced tab.
    3. Expand section Filters.
    4. To sort images by title in descending order, type the following in SortExpression field: Name DESC
    Do let us know if you need any further assistance.

    Kind regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    13 Dec 2008
    Link to this post
    Note: This appears to be CASE SENSITIVE ?!

    "name asc"  does not sort,  while  "Name asc" does sort.

    It took me ages to work that one out.
  4. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    10 Sep 2010
    Link to this post
    This is one shortcomming of SF 3.x

    a) Not possible to have two images with same name (who ever came up with the idea to make the title the ID)
    b) no smart sorting in any way.

    Hope 4.0 will address these issues.

    Markus
Register for webinar
4 posts, 0 answered