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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. janux
    janux avatar
    6 posts
    21 Oct 2015
    10 Nov 2015
    Link to this post


    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
    15 Jun 2017
    11 Nov 2015
    Link to this post

    You can query comments by blog post as documented here.

    Bilyana Ivanova
    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