How to show the comments link correctly

HelenaG Grulichova asked on March 29, 2011 05:48

How to show the comments link correctly

Correct Answer

HelenaG Grulichova answered on March 29, 2011 05:48

This issue refers to the “1 comments” text within the blog post preview default transformation (e.g. cms.blog.PostPreview). The “s” letter apparently resides here - the linguistic aspect is not preserved.
Therefore, if you want to display this text correctly, you can either create a custom function to transformation or even more easily use the IfCompare built-in function which does it for you:

<%# IfCompare(BlogFunctions.GetBlogCommentsCount(Eval("DocumentID"),Eval("NodeAliasPath")), 1, "comments","comment") %>

Links to other resources: Transformations documentation

-ov-
0 votesVote for this answer Unmark Correct answer

Recent Answers


aadil khan answered on May 9, 2018 12:04

Hey if you are fed of in visiting various types of sites for getting the various codes of club penguin online pinochle game then visit our newly introduced site which will let you to get the unlimited codes of club penguin at zero penny the pinochle is online video card tacking game and it is still one of the country's most popular games.

0 votesVote for this answer Mark as a Correct answer

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