<txp:if_comments /> container tag, 0 attributes


The if_comments tag is a conditional tag and always used as an opening and closing pair, like this…

...conditional statement...

The tag will execute the contained statements if there are one or more comments associated with a particular article. Should be used in an article form.

<txp:if_comments /> 1 examples

Number of comments associated with an article

<p><txp:comments_count /> Comments</p>
<txp:else />
<p>No Current Comments</p>

What this does…
Displays the number of comments written against the current article, otherwise display default text to indicate there are no comments.

Other tags used: comments_count, else