Blog Comment View

Kelly Shepard asked on July 29, 2014 19:50

I am using the webpart BlogCommentView.ascx on a page. If there are no comments I would like to have the section that says:

Comments No Comments

to NOT be displayed. Is there any easy way to do this?

Thanks

Recent Answers


Kelly Shepard answered on July 29, 2014 22:45

Never mind...did this: <%# BlogFunctions.GetBlogCommentsCount(Eval("DocumentID"), Eval("NodeAliasPath")) > 0 ? "Comments: (" + BlogFunctions.GetBlogCommentsCount(Eval("DocumentID"), Eval("NodeAliasPath")) + ") ":"" %>

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.