Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-09 09:44:38

Christoph
Member
From: Gangelt, Germany
Registered: 2009-01-30
Posts: 13
Website

Show comments count as linked number – no additional text

When using commnets_invite, I always get a text like “5 comments”, “2 comments” and so on. But I only want to have the numbers without text, but with a link to the comment section. Just “0”, “1”, “2”.
The tag comments_count gives me the number I want, but without a link.
I tried a few thing but it didn’t work. Any ideas?

Thanks in advance!

Offline

#2 2009-11-09 11:30:48

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Show comments count as linked number – no additional text

You can always do the link yourself. Example:

<a href="<txp:permlink />#comments">
	<txp:comments_count />
</a>

Offline

#3 2009-11-09 11:49:00

Christoph
Member
From: Gangelt, Germany
Registered: 2009-01-30
Posts: 13
Website

Re: Show comments count as linked number – no additional text

Thank you!!!
That’s exactly what I need. It’s sometimes just too simple :). I didn’t know you can simply add #comments to the permlink.

Offline

Board footer

Powered by FluxBB