Display in ascending order based on "number of comments counts" in blog post (transformations)

padmini prabhakaran asked on October 25, 2016 09:23

Please send me the code to display : Based on "number of comments counts" it has to order in ascending order, in the transformations.

Recent Answers


David te Kloese answered on October 26, 2016 14:30

Hi,

Since the comments are stored in a different table I think you need to create a custom datasource. You could write your own query. Comments are stored in the "Blog_Comment" table and is linked to a "cms_document" using the CommentPostDocumentID column.

If you just want to show the comment count in a transformation you could use:

<%# Eval("CommentCount") %>

David.

0 votesVote for this answer Mark as a Correct answer

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