kentico_ondrejv
-
1/21/2010 9:40:41 AM
RE:How to change the order in the comments list view
Hello,
You can achieve this goal by adjusting the blog.comment.SelectForPost query in the database. Please find the CMS_Query table and amend the query in QueryText column.
There is following query:
SELECT ##TOPN## ##COLUMNS## FROM Blog_Comment WHERE CommentPostDocumentID = @CommentPostDocumentID AND (##WHERE##) ORDER BY ##ORDERBY##
Please change it like this:
SELECT ##TOPN## ##COLUMNS## FROM Blog_Comment WHERE CommentPostDocumentID = @CommentPostDocumentID AND (##WHERE##) ORDER BY CommentDate DESC
Please restart the system afterwards to take effect.
Best regards Ondrej Vasil
|