More in this section

Forums / Developing with Sitefinity / Ordering Images

Ordering Images

4 posts, 0 answered
  1. Lara
    Lara avatar
    6 posts
    Registered:
    05 Feb 2009
    05 Feb 2009
    Link to this post
    So far I have realized that the last image uploaded to a photo gallery becomes the first image that shows.

    I want to be able to order my images on the page. How do I do that?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    09 Feb 2009
    Link to this post
    Hi Lara,

    Thank you for using our services.

    If you use ImageGallery control on your page you could add Sort and Filter expressions properties of the control with various values. The properties could be found under Advanced  tab, Filters.

    Let us know if your approach is different.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Lara
    Lara avatar
    6 posts
    Registered:
    05 Feb 2009
    10 Feb 2009
    Link to this post
    Hi Ivan,

    I went in to look at it. Do you have an instruction on how it works. I am not a programmer and I need to be able to train others on how to sort. It is not intuitive.

    It defaults to Publication_Date DESC

    If I want to sort it the way I want it.

    Of if I want to sort it alphbetically?

    How do I do that?

    L.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Feb 2009
    Link to this post
    Hello Lara,

    Please take a look at the following blog post made by Joseph http://blogs.sitefinity.com/josephanderson/posts/08-12-17/Filter_Expressions.aspx

    You can sort and filter items by their's metafields. There is no problem to add you custom metafields and use them in sort conditions. If you want to sort alphabetically you need to set Name ASC as a value of SortExpresion property under Advanced tab of the ImageGallery control

    I hope this helps.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered