on the "hub" that displays a list of posts, i was wondering if i can pull back the ammount of comments per post and simply display "comments 3", does this feature exist? if so where?
If not how would i go about getting the comments for each post on the hub page?
Comments for each post Count()
Hey, i was wondering,
on the "hub" that displays a list of posts, i was wondering if i can pull back the ammount of comments per post and simply display "comments 3", does this feature exist? if so where?
If not how would i go about getting the comments for each post on the hub page?
Many thanks!
I robbed the idea from latest comments
@foreach (IPublishedContent comment in comments)
{
if(comment.Parent.Id == post.Id)
{
commentCount++;
}
}
simples, this lies within the post loop of the SmarListPosts view
is working on a reply...