Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-12-22 17:39:23
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Link to first comment
How would I format the comments_invite tag to link to the first comment instead of the beginning of the article?
Offline
#2 2006-12-22 18:30:45
- mstwntd
- Member
- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: Link to first comment
Are you referring to the first comment sitting under an entry, or the first that was posted?
Offline
#3 2006-12-22 18:59:14
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Re: Link to first comment
The first comment posted, ie. click comments invite and go directly to that comment or the comment form if no comments have been posted yet.
Offline
#4 2006-12-23 01:50:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Link to first comment
Check the default comments_display form for your answer. :)
Offline
#5 2006-12-25 20:46:51
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Re: Link to first comment
Mary,
Unless I’m being obtuse (entirely possible), and in spite of what it says here ( http://textbook.textpattern.net/wiki/index.php?title=Txp:comments_invite_/ ), the comments_invite tag links to the beginning of an individual article, not the oemments form, and you have to scroll down to see/add comments. I’m trying to have the first comment be an anchor (or the form if there isn’t a comment yet), with comment_invite linking to that. Impossible, or have you already answered me? Here’s my site, see the post named Pandora Jar for an example…
http://pxclassic.net
Thanks:)
Offline
#6 2006-12-25 20:55:36
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Re: Link to first comment
Hmm, Jon Hicks’ site uses Textpattern and his comment invitations work the way I want, so I’m missing something…
http://www.hicksdesign.co.uk/journal/
Offline
#7 2006-12-25 23:08:58
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Link to first comment
Look at the html output of your comments_invite tag, it’s probably something like
<a href="http://site.com/article/article-title#comment">Comment</a>
.
You can add the anchor (<a name="comment"></a>
) where you want it, for example at the end of your single article form.
Offline
#8 2006-12-26 04:20:21
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Link to first comment
As the example posted shows.
Offline
#9 2006-12-29 17:46:38
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Re: Link to first comment
Great, got it. Thanks everyone.
Offline
#10 2009-03-18 20:11:21
- juliane
- Member
- Registered: 2009-02-08
- Posts: 33
Re: Link to first comment
if i have a #respond div around the comments-form.. how can I change the comments_invite to go #respond instead of #comments ?
like this: <a href=“http://site.com/article/article-title#respond”>Comment</a>.
how can I change where it goes to?
thank you.
Offline
#11 2009-03-20 20:54:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Link to first comment
Don’t use comments_invite
. Instead, do something like (off the top of my head):
<txp:if_comments_allowed><p><a href="<txp:permlink />#respond">Comment</a></p><txp:if_comments_allowed>
Offline
Pages: 1