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

Forums / Developing with Sitefinity / How to get comments that belong to the post

How to get comments that belong to the post

2 posts, 0 answered
  1. janux
    janux avatar
    6 posts
    Registered:
    21 Oct 2015
    10 Nov 2015
    Link to this post

    Hi,

    I get posts from specific blog this way:

    List<BlogPost> posts = App.WorkWith().BlogPosts().Where(bp => bp.Parent.Title == "Name of blog" && bp.Status == ContentLifecycleStatus.Live ).Published().Get().ToList();

    How can i get comments from every post from my list? Cause i need to show only currently logged user coments to every one post.
  2. Bilyana Ivanova
    Bilyana Ivanova avatar
    34 posts
    Registered:
    30 Sep 2016
    11 Nov 2015
    Link to this post
    Hi,

    You can query comments by blog post as documented here.

    Regards,
    Bilyana Ivanova
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered