How to get comments that belong to the post

Posted by Community Admin on 04-Aug-2018 14:36

How to get comments that belong to the post

All Replies

Posted by Community Admin on 10-Nov-2015 00:00

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.

Posted by Community Admin on 11-Nov-2015 00:00

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
 

This thread is closed