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

Forums / Developing with Sitefinity / Sorting library items

Sorting library items

2 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    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">  
            </add> 

    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?

    Thanks,
    Daniel
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    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,
    Georgi
    the Telerik team

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