Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-17 16:45:26

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

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

#2 2006-08-17 18:36:48

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

Re: custom comment invite

Hi alittle116,

you can try the snippet here: http://forum.textpattern.com/viewtopic.php?pid=109541#p109541


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-08-17 18:46:53

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

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

#4 2006-08-18 15:56:45

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

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”.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2006-08-18 15:58:20

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: custom comment invite

yeah good idea. thanks

Offline

Board footer

Powered by FluxBB