kentico_michal
-
5/31/2012 1:57:36 AM
RE:How to get the blog comments for a particular blog?
Hi,
Blog comments are stored in the Blog_Comment database table. Each comment contains a reference to the document (CommentPostDocumentID) on which the comment was posted. So to get comments for some blog post you need to know its DocumentID and use the BlogCommentInfoProvider.GetPostComments(int postDocumentID, bool onlyApproved) method to get all comments.
Best regards, Michal Legen
|