More in this section
Forums / Developing with Sitefinity / Sorting library items

Sorting library items

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    18 Feb 2004
    28 Apr 2008
    Link to this post
    Hi telerik,

    I'd like to sort library items (downloads/newsletters etc.) on their publication date. I read in previous posts that this could be achieved by setting the SortBy or FilterExpression in the advanced options of the module.

    <add name="Document" title="Document Library" defaultExtenstions=".doc, .docx, .rtf, .txt, .pdf, .ppt, .pptx, .html, .xls, .xlsx" metaKeys="Author, Description, Extension, Name, Size, Category">  

    Publication_Date is not in the metakey list. And there is no date at all that I can sort of. How can I achieve this?

  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    29 Apr 2008
    Link to this post
    Hi Daniel,

    It is true that you cannot sort library items by date.

    You could achieve such functionality if you add custom meta field to the Images and Documents module which  accepts date type. Then, you could sort your items by this field.

    For more information on adding meta fields, please refer to the User Manual -> Working with Modules, section Adding Custom Fields.

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered