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

Forums / Developing with Sitefinity / comments re-ordering

comments re-ordering

2 posts, 0 answered
  1. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    14 Dec 2009
    Link to this post
    in single blog post where the comments are posted. they are by default in (older to newer order), i want to reverse that. i.e new comment should appear first.
    any help?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    14 Dec 2009
    Link to this post
    Hello Muhammad Saqib,

     The comments list has a property called SortBy. It's default value is DateCreated. So, you can change the default value and reorder the posts.

    1. Map ListPageDetail.ascx template for BlogPosts control.

    2. In the control template there is the following declaration of the comments control where you can add the property mentioned above.

    <sfWeb:BlogCommentsList ID="commentsList" runat="server" CssClass="sf_commentsList" ValidationGroup="commentInfo">
     
    ....
        ...
     </sfWeb:BlogCommentsList>


    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered