Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
custom comment invite
For the comment invite link, i would like to use the following text:
“5 posts have been left in this discussion.”
I am using <code><txp:comments_count /></code> to generate that text, but how do i make it clickable to comments form?
Thanks!
Offline
Re: custom comment invite
Hi alittle116,
you can try the snippet here: http://forum.textpattern.com/viewtopic.php?pid=109541#p109541
Offline
Re: custom comment invite
thanks! it looks like that did the trick. Here is the code i used
<code><a href=”<txp:permlink />”><txp:if_comments><txp:comments_count /><txp:else />0</txp:if_comments> posts have been made in this discussion.
</a></code>
Offline
Re: custom comment invite
Hi alittle116,
you can use an anchor link, like <txp:permlink />#comments. That way, if someone clicks in that link, it goes directly to the element (usually, a div element) that has the anchor “#comments”.
Offline
Re: custom comment invite
yeah good idea. thanks
Offline
Pages: 1