Is there a way to set this on the comment template?
a condition to set ‘Comment’ to singular when single comment and plural ‘Comments’ in more than 1 comment
Thanks!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 24, 2007 9:53pm
Subscribe [2]#1 / Dec 24, 2007 9:53pm
Is there a way to set this on the comment template?
a condition to set ‘Comment’ to singular when single comment and plural ‘Comments’ in more than 1 comment
Thanks!
#2 / Dec 25, 2007 10:24am
Something like this might work:
{exp:comment:entries ....}
<h2>{if absolute_count==0}No {/if} Comment{if absolute_count ==1}s{/if}</h2>
<p>{/exp:comment:entries}