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.

EE 2 - How to put a conditional in comment entries based on the total count

March 25, 2010 10:11am

Subscribe [1]
  • #1 / Mar 25, 2010 10:11am

    opel

    160 posts

    I had a look through the docs and I can’t see an answer to this.

    What I want to do is inside the {exp:comment:entries} tag is to put a conditional if the results are greater that 10 link through to a template that shows all entries for that article.

    Is this possible or is there a better way to do it ?

    Cheers,

    Andy

  • #2 / Mar 25, 2010 10:46am

    Manuel Payano

    144 posts

    Try this

    {if total_comments > 10 AND count > 10}<a href="http://some_link">To Template</a>{/if}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases