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

Forums / Developing with Sitefinity / Changing the order of blog comments

Changing the order of blog comments

2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    13 Nov 2008
    Link to this post
    Hi,

    Can you change the order of blog comments so that the most recent is at the top of the public  comments list rather than the bottom.

    Seth
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    13 Nov 2008
    Link to this post
    Hi Seth Cleaver,

    Please open \Sitefinity\ControlTemplates\Blogs\Modes\ListPageDetail.ascx file and find the declaration of BlogCommentsList control. Then set SortBy property as follows:


    <cc:BlogCommentsList ID="commentsList" runat="server" CssClass="sf_commentsList" SortBy="DateCreated DESC"
            ... 
    </cc:BlogCommentsList> 

    Hope this helps.

    Greetings,
    Pepi
    the Telerik team

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