Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-09-21 01:58:26
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
How do I make the number of comments link to the comments?
hi all,
as i stated on subject, i have little probs here on textpattern.
first question:
how to displaying many comments on post, i mean like below;
6 Comment
Please note: there will be a link
thanks
(Edited: changed the subject into something more descriptive :) -Els)
Last edited by els (2008-09-21 06:27:37)
Offline
#2 2008-09-21 03:06:20
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: How do I make the number of comments link to the comments?
Are you looking for something along these lines? comments_count
Offline
#3 2008-09-21 03:19:47
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
Re: How do I make the number of comments link to the comments?
yea, thank you and thats worked ;)
But how to make thats comment count are link?
Offline
#4 2008-09-21 04:09:08
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: How do I make the number of comments link to the comments?
<txp:comment_permlink><txp:comments_count /></txp:comment_permlink>
<txp:permlink><txp:comments_count /></txp:permlink>
from the same reference permlink
Last edited by rsilletti (2008-09-23 15:54:35)
Offline
#5 2008-09-21 04:28:25
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
Re: How do I make the number of comments link to the comments?
i found bad error when i try that;
“Tag error: <txp:comment_permlink> -> Textpattern Notice: Comment tags cannot be used outside a comment context on line 1971”
“Tag error: <txp:comment_permlink> -> Warning: extract() [function.extract]: First argument should be an array on line 1650”
Offline
Re: How do I make the number of comments link to the comments?
Shouldn’t that be permlink instead of comment_permlink?
Offline
#7 2008-09-24 02:54:02
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
Re: How do I make the number of comments link to the comments?
@rsilletti ; thanks, thats worked!!!!
Offline
#8 2008-09-24 03:04:35
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
Re: How do I make the number of comments link to the comments?
have a stupid question here :D
I was confused about TXP Conditional Tag, Container Tag, and Single Tag. Does three of the tags can we used on Pages and Forms? or just on Pages or Forms? Do let me know for this.
Many thanks!
Offline
#9 2008-09-24 03:12:22
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: How do I make the number of comments link to the comments?
All conditional tags are container tags because that allows differing content to be selected on the strength of the conditional circumstance.
Container tags run this way : <txp:yourtag> Content here </txp:yourtag>
Single (or self closing) tags run this way: <txp:yourtag />
Container or Single is not in and of itself dependent on context, you will find both in most any context. Context sensitivity is rather something to be considered on a tag by tag basis.
Offline
#10 2008-09-24 03:31:55
- kitikat
- Member
- Registered: 2008-09-21
- Posts: 12
Re: How do I make the number of comments link to the comments?
Thanks for your promptly respond.
Anyway, regarding <txp:article_image />, what should we do if we want to included 2 or 3 images on single article? I mean if we want to still using image ID instead url link
Offline
#11 2008-09-24 05:56:09
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: How do I make the number of comments link to the comments?
article_image is pretty much 1 article, 1 image; if you want to use multiple images in a single article use <txp:image /> .
Offline
Re: How do I make the number of comments link to the comments?
or, use upm_image, a plugin that llets you have several article images
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline