Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-09 01:42:52

firago
Member
Registered: 2005-01-03
Posts: 54

If one comment display comment in stead of comments

I am trying to make it so that if there is only one comment on an article, then it displays 1 comment, instead of 1 comments. I have the following, but it doesnt work. Thank you for your help.

<code>
<txp:if_comments_count val=“1”>
Comment
<txp:else />
Comments
</txp:if_comments_count>
</code>

Offline

#2 2006-05-09 02:19:23

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: If one comment display comment in stead of comments

That doesnt work because if_comments_count doesnt exist.

Check the tag list.

This plug-in may help you.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB