ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Condition to set 'Comment' to singular when single comment and 'Comments' in more than 1 comment

December 24, 2007 9:53pm

Subscribe [2]
  • #1 / Dec 24, 2007 9:53pm

    nocturnale

    12 posts

    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

    AJP

    311 posts

    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}

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases