Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2005-11-22 17:01:02

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

How do you actually get textpattern to write the url of a comments feed for a particular article?
I tried this in the comments_display form:
<code><a href=”/<txp:section />/<txp:title />/rss”>subcribe</a></code>
But it falls down when the title has more than one word in it…

Am I way wide of the mark?

Offline

#12 2005-11-22 17:15:51

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_comments_feed

By default, this plugin will operate in messy mode. In order to get clean comments feeds, you’ll need to install <code>ajw_clean_feed</code>. Clean urls for article comments feeds are generated by ajw_clean_feed_link and will consist of your permalink, followed by /rss or /atom. Check this example for syntax.

Offline

#13 2005-11-22 18:15:07

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Thanks Andrew.
I installed ajw_clean_feed already, I was just having a mental block on how to write the URL. <code><txp:permlink /></code> is what I needed :)

Last edited by pieman (2005-11-22 18:15:25)

Offline

#14 2005-11-22 18:30:33

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

One more question. I apologise for my dimness ;)
I now have a working, clean comments feed in each page.
How can I dynamically write a meta auto-discovery link for each article so that Bloglines and the like can find the feed?
This is a separate issue rrright?

Offline

#15 2005-11-22 19:07:13

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

You would have to put something like this before the closing < /head> at the top of your page: <code><link rel=“alternate” type=“application/rss+xml” title=“Comment Feed” href=“path/to/feed” /></code>

Offline

#16 2005-11-22 19:14:09

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Cool, but my problem is knowing how to write the path to the feed of the specific article…

I (hopefully) tried <code><link rel=“alternate” type=“application/rss+xml” title=“RSS feed” href=”“<txp:permlink />/rss”“ /></code> in the head template,
but it doesn’t know what the article is, so it writes <code><link rel=“alternate” type=“application/rss+xml” title=“RSS feed” href=”“/rss”“ /></code> in the page.

Offline

#17 2005-11-22 19:38:56

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_comments_feed

Ah, yes – this is because the article has not yet been parsed yet in your template so it does not exist. I forget, is there a solution to this issue? Using href="<txp:permlink />/rss/" seems like a pretty good solution.

Last edited by Andrew (2005-11-22 19:40:04)

Offline

#18 2005-11-22 20:09:45

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Is this still around: <code><txp:article pgonly=“1” /></code>? Maybe this could be put above the auto-discovery link so that the article is parsed first then the permalink would work.

Last edited by tinyfly (2005-11-22 20:11:59)

Offline

#19 2005-11-22 21:02:24

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Do you mean put the article in the <code><head></code> section?
That would get me arrested surely!

Offline

#20 2005-11-22 21:06:00

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Yes. Just a thought, using the pgonly attribute nothing gets outputed it just lets textpattern parse the article and know that it is there. Try it and see what it does. It may make your computer explode though!!

Offline

Board footer

Powered by FluxBB