More in this section

Forums / Developing with Sitefinity / News display order

News display order

4 posts, 0 answered
  1. Mitch Thraves
    Mitch Thraves avatar
    9 posts
    Registered:
    05 Feb 2006
    18 Apr 2008
    Link to this post
    Hi

    I've noticed that the order our news items are displayed seems somewhat random. I take it that they should be displayed in date order with the latest at the top. On the basis that I'm in the UK, could the problem be related to UK date format? or is there a more obvious explanation!

    Regards

    Mitch
  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    22 Apr 2008
    Link to this post
    Hi Mitch Thraves,

    You could sort news items in the NewsList control by one of the fields listed in the web.config file in telerik/cmsEngine section, the MetaFields tag.

    By default, the following fields are available for News and they are sortable:
    • Title
    • Summary
    • Author
    • Source
    • Publication_Date
    • Expiration_Date 
    • Thumbnail

    To sort the news list items you have to:

    1. Add a news list control on a page,
    2. Click on the Edit link of the added control,
    3. In the Appearance section of the properties, modify the SortBy field.

    You can choose between Ascending and Descending order by adding "ASC" or "DESC". For example, if you want to sort news by publication date in descending order, you should type "Publication_Date DESC" in the SortBy field (Note that the name is case-sensitive).

    Hope that this helps.

    All the best,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Mitch Thraves
    Mitch Thraves avatar
    9 posts
    Registered:
    05 Feb 2006
    23 Apr 2008
    Link to this post
    Hi Nikifor,

    It's all working now and thanks for the additonal info about the sort order. I must say that default sorting by title seems a bit odd as surely most users would expect it to be in  Publication_Date DESC order.

    Maybe I'm wrong but if most people were using it in date order it might be worth changing the default sort order to date rather than title.

    Regards

    Mitch
  4. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    29 Apr 2008
    Link to this post
    Hello Mitch Thraves,

    I am glad that you were able to resolve the issue.
    You are right that sorting news by Publication_Date sounds more intuitive than by Title. Still, we cannot confirm that we will be updating this particular control soon.

    Thank you for your time.

    Kind regards,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered