Sarah asked about adding a comments feed to a Typepad blog over at LibrarianInBlack.net. I found out about it from reading a post (via feed, natch) from Steven Cohen’s Library Stuff.
I hadn’t had coffee yet, so I thought Steven was asking and I told him via comments. Then realised it was Sarah who needed the info. So, since Sarah is probably not the only Typepad user who would want to know this information, here are the caveats and steps for adding a comments feed to your site.
Caveat 1: You have to be a Pro-level Typepad user to do this. Sorry. But maybe that is incentive to knocking it up a notch. Apologies to Elzar.
Caveat 2: You have to set up your blog to use “Advanced Templates.”
Step 1: Assuming you are a Pro-level Typepad user, go to the Design section of your blog.
Step 2: Convert to Advanced Templates if you haven’t.
Step 3: Once you’ve done that, click the Create New Index Template link.
Step 4: Enter a Template Name of Comments Feed (or what ever you like really).
Step 5: Enter “comments.xml” as the Output File name.
Step 6: Copy the code below into the Template Body.
<?xml version=”1.0″ encoding=”utf-8“?>
<title><MTBlogName encode_xml=”1″> Comments</title>
<dc:date><MTEntries lastn=”1″><MTEntryDate format=”%Y-%m-%dT%H:%M:%S”
<admin:generatorAgent rdf:resource=”http://www.movabletype.org/?v=<MTVersion>” />
<MTBlogIfCCLicense><cc:license rdf:resource=”<MTBlogCCLicenseURL>” />
<MTComments lastn=”15″ sort_order=”descend”><MTCommentEntry><item>
<title><MTCommentAuthor encode_xml=”1″> comments on “<MTEntryTitle
<link><MTEntryPermalink encode_xml=”1″>#c<MTCommentID pad=”1″></link>
<description><MTCommentBody remove_html=”1″ encode_xml=”1″></description>
<foaf:homepage rdf:resource=”<MTCommentURL encode_xml=”1″>” />
Step 7: Save and Publish the new template.
Step 8: Copy the URL for the comments feed to test it in your RSS reader of choice. The URL will be something like: http://usabilityworks.typepad.com/uwdotorg/comments.xml.
Step 9: If it works, add something to your site that allows everyone to pull your feed.
Step 10: Write a post about how you have a brand new, shiny comments feed and put a link to this post in it. ;)
That’s it. If you have questions, or feel I have left something out, add a comment and I will follow up.
One thing to consider in the future… Typepad is based on Movable Type. And by based on I mean it is Movable Type. So if want to do something to your Typepad blog, but are having trouble figuring out how based on Typepad documentation, try looking in Movable Type documentation. Again, keep in mind that you will have to be a Pro-level user to do 98% of it.
Update: I added a comments feed badge at the top of the page. Feel free to use this one, or make your own.