Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#comments link
Relevant URL: <a href=“http://sonspring.com/”>www.sonspring.com</a>
I’ve looked and looked for solutions, and even tried hacking my taghandlers.php file, to no avail. I even asked the Particletree guys, and they cited it as one of the reasons they’re now using MT.
So, here’s what I’m trying to do. I want to be able to link directly to #comments without having to use the <code><txp:comments_invite /></code> link. Is there anything that would let me use the link as a wrapper around text of my choice?
Alternatively, could someone explain how to hack the taghandlers.php file to work like this?
Last edited by Nathan Smith (2005-10-19 22:43:58)
Are we all figments of God’s imagination?
Offline
Re: #comments link
the comments are no the same page as the the article. So you can use permalink-url and add an anchor to that.
Offline
Re: #comments link
That’s what I was thinking, but how would I go about linking directly to the comments from the index page, such as on <a href=“http://www.stopdesign.com/”>www.stopdesign.com</a> (and yes, I know he’s using MT).
Last edited by Nathan Smith (2005-10-19 22:43:16)
Are we all figments of God’s imagination?
Offline
Re: #comments link
The problem is trying to build an anchor into your link. The comments_invite tag has one built-in to link to an id=“comment” which you can add to the top of the comments_display form. I’m not sure how you can do it if you are going to use “permlink”. You could manually construct the link I suppose but that could get monotonous. Why don’t you want to use comment_invite?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: #comments link
I just want to be able to use it flexibly, and not worry about the comment form being placed dynamically because of it. Also, I’d like to tweak the number of comments to diplay without [N], and come before the word “comments.” I’m just knit-picky. If it’s not possible, no biggie.
I just think it’d be cool if the syntax could be like this <code><txp:comments_invite>Read Comments</txp:comments_invite></code>.
Last edited by Nathan Smith (2005-10-20 02:35:42)
Are we all figments of God’s imagination?
Offline
Re: #comments link
Oddly Nathan those tags work but still output the standard comment invite text.
There are some new attributes for comment_invite tag, some new tags for comments and comment_form display and some natty stuff for preview which will hopefully all make it for 4.0.2 though the preview stuff is still “under test” methinks. I’m still not sure that it will do exactly what you want but you will have a lot more control.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: #comments link
That’s cool, I can wait ‘til then. Thanks for all you guys do.
I saw you (tbs) ported alot of templates over. What all needs to be done to make one from scratch? I’ve got a few ideas, but not sure how to bundle the template all up, so that it’s easy to use for others.
Are we all figments of God’s imagination?
Offline
Re: #comments link
Wait, you can already enter an individual comments-invite for each article, or set one in preferences. Why would you want to override that?
And as I wrote above, you could do it in the article-form that is used to list the articles on the home-page. Like this:
<code>
<a href=”<txp:permlink />#comments”>Look ma</a>
</code>
But I don’t think it’s necessary…
Offline
Re: #comments link
There you go. Drop the “s” though. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: #comments link
Thanks guys, you rock. Exactly what I was looking for.
Are we all figments of God’s imagination?
Offline
Pages: 1