Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-10 20:07:15
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
4.0.2 Comments
I have upgraded to Textpattern 4.0.2 and nothing edited. But now, if I have some comment, on the page is usual ‘Comments[no.]’, but if I have 0 commnets for article, there is not the ‘Comments’, but nothing!
How can I repair it? Is some new form or atribute for Comments?
Thanx
Offline
#2 2005-11-10 20:37:38
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.2 Comments
Yep.
Offline
#3 2005-11-10 20:46:16
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: 4.0.2 Comments
“Yep” – sorry, but I don’ understand – there is nothing about my problem…or my english is not so good to understand…why my ‘Comments’ link disappear if there is 0 comments?
Offline
Re: 4.0.2 Comments
The old template was using if_comments
around the invite. Given that if_comments was broken and has been fixed now, it works different. if_comments is true when the number of comments is greater than 0.
Remove the txp:if_comments
from around the invite-tag. the invite-tag now also supports wraptag, <txp:comments_invite wraptag="p" />
for example.
(You can also get the old behaviour by using <txp:if_comments_allowed>
)
Offline
#5 2005-11-10 21:21:32
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Offline
Pages: 1