Creating a comments feed

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

Lawrence asked how to create an RSS feed for your comments like mine. I’ll probably make some changes to my feed, but here’s how it’s currently done.

Create a new Index template in Movable Type with an output filename of something like comments.xml and use something like this for the template contents:

<?xml version="1.0"?>
<rss version="0.91">
  <channel>
    <title><$MTBlogName$> Recent Comments</title>
    <link><$MTBlogURL$></link>
    <description>Recent comments on the Kalsey Consulting 
                        Group weblog.</description>
    <language>en-us</language>
    <image>
        <link><$MTBlogURL$></link>
        <url>http://www.kalsey.com/images/kalseybanner.gif</url>
        <title><$MTBlogName$> Recent Comments</title>
    </image>
    <copyright>Copyright 2002 Kalsey Consulting Group. 
                        Permission granted for non-comercial 
                        use.</copyright>
    <webMaster>info@kalsey.com</webMaster>
    <lastBuildDate>
        <$MTDate format="%B %d, %Y %I:%M %p"$>
    </lastBuildDate>
<MTEntries recently_commented_on="6">
    <item>
      <title><$MTEntryTitle encode_html="1"$> 
                   (<$MTEntryCommentCount$> Comments)</title>
      <description><MTEntryExcerpt no_generate="1" encode_xml="1">
                        <MTComments encode_xml="1" lastn="5">
<p><MTCommentAuthor> on 
    <MTCommentDate format="%b %e, %Y %l:%M %p"> | 
    <MTCommentBody trim_to="200" convert_breaks="0"
               remove_html="1">...</p>
  </MTComments></description>
      <link><$MTEntryLink$>#comments</link>
    </item>
</MTEntries>
  </channel>
</rss>

Of course you’ll need to change the title, description, copyright, and email address, but you get the idea. You can also adjust how many entries are displayed and how many comments for each entry are included by altering the lastn values in the template.

You’ll also need to make sure that all MT tags are on one line. MT won’t process tags with a line break in them.

Quadsk8
September 21, 2002 12:27 PM

Adam, I tried both Phil's RDF-template as this one. Conclusion: yours easier to implement by far, works immediately and has a nicer arrangement. Phil Ringnalda's needs a MT-plugin which for some reason does not seem to work for me (Al others do...). To finish off with a question: My normal Feed is using the wordcount plugin before the Excerpt (Mark Pilgrim's idea) would there be a way to do this for comments? Thanks for publishing your template! Lawrence

Adam Kalsey
September 21, 2002 4:30 PM

WordCount doesn't count comments, just the entry body and the extended entry.

Adam Kalsey
September 21, 2002 4:35 PM

The other feed template Lawrence mentioned is at http://philringnalda.com/archives/002320.php You can find other templates for comments feeds at: http://philringnalda.com/archives/002225.php http://www.syndic8.com/~wkearney/blogs/syndic8/archives/000012.html Anyone know of others?

Quadsk8
September 22, 2002 7:27 AM

No Feed but a rather interesting discussion on this thread http://www.intertwingly.net/blog/836.html Lawrence

Quadsk8
September 23, 2002 12:07 AM

Yes, found one! (already had it in my aggregator, but now the template is available) l.m.orchard of 0decafbad has published his MT-template. Find it on this post: http://www.decafbad.com/news_archives/000290.phtml Bottom line: nobody beats the Kalsey-template for usability! Lawrence

Quadsk8
November 10, 2002 1:06 PM

Seems I can't stop commenting on this post: sorry... I put up a MT-template as comment on my Blog for Comments Feed in RSS 2.0 style (seems to validate). http://www.groovycompany.nl/Blog/Archives/000121.php#000156 (link to example feed: click Quadsk8 above) Maybe useful for anyone? Lawrence

Quadsk8
November 10, 2002 1:08 PM

Sorry typo on Feed URL, click Quadsk8 above THIS comment...

Trackback from XXII Group
March 16, 2003 1:06 AM

Progress Report

Excerpt: Massive Improvement Number One NSLog(); posts some useful tips for Movable Type newbies like me and you. Well, not so much me but definitely you. ;-)

Trackback from Links
August 27, 2004 9:59 PM

Comments Feed Movable Type

Excerpt: Creating a comments feed :: Kalsey Consulting Group

This discussion has been closed.

Follow me on Twitter

Best Of

  • California State Fair The California State Fair lets you buy tickets in advance from their Web site. That's good. But the site is a horror house of usability problems.
  • Best of Newly Digital There have been dozens of Newly Digital entries from all over the world. Here are some of the best.
  • How not to apply for a job Applying for a job isn't that hard, but it does take some minimal effort and common sense.
  • Newly Digital Newly Digital is an experimental writing project. I've asked 11 people to write about their early experiences with computing technology and post their essays on their weblogs. So go read, enjoy, and then contribute. This collection is open to you. Write up your own story, and then let the world know about it.
  • Lock-in is bad T-Mobile thinks they'll get new Hotspot customers with exclusive content and locked-in devices.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

Encouraging 1:1s from other managers in your organization (Jan 4)
If you’re managing other managers, encourage them to hold their own 1:1s. It’s such an important tool for managing and leading that everyone needs to be holding them.
One on One Meetings - a collection of posts about 1:1s (Jan 2)
A collection of all my writing on 1:1s
Are 1:1s confidential? (Jan 2)
Is the discussion that occurs in a 1:1 confidential, even if no agreed in the meeting to keep it so?
Skip-level 1:1s are your hidden superpower (Jan 1)
Holding 1:1s with peers and with people far below you on the reporting chain will open your eyes up to what’s really going on in your business.
Do you need a 1:1 if you’re regularly communicating with your team? (Dec 28)
You’re simply not having deep meaningful conversation about the process of work in hallway conversations or in your chat apps.
What agenda items should a manager bring to a 1:1? (Dec 23)
At least 80% of a 1:1 agenda should be driven by your report, but if you also to use this time to work on things with them, then you’ll have better meetings.
Handling “I don’t have anything to talk about” in your 1:1s (Dec 21)
When someone says they have nothing to discuss, they’re almost always thinking too narrowly.
What should you talk about in a 1:1? (Dec 19)
Who sets the agenda? What should you discuss, and what should you avoid discussing?

Subscribe to this site's feed.

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

Twitter, etc: akalsey

Resume

PGP Key

©1999-2019 Adam Kalsey.