Add Category Feeds to your Typepad Blog

Seeing as we got the Comments Feed issues solved, let’s try to get some category feeds up and running.

Right now I have two category feeds available (I’ll do more later :) : Design and Usability. Both feeds load up nicely in Bloglines and both are valid according to feedvalidator.org.

A lot of the steps are essentially the same as the previous post, but since a large portion of my traffic comes from search engines, I figured I would do the step-by-step here too. I have bolded where I have made changes to the main site feed, plus the spot where you need to add your name. You will also want to change where it says, “.:. Category – Design” as that’s just my way of denoting the feed. You should put something there, otherwise the Title of your new category feed will be the same as your main feed.

Caveat 1: You have to be a Pro-level Typepad user to do this.

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 Category Feed: [Category] (or what ever you like really).

Step 5: Enter “category[categorname].rdf” as the Output File name.

Step 6: Copy the code below into the Template Body.

<?xml version=”1.0″ encoding=”utf-8″?>

<rdf:RDF
xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#”
xmlns:dc=”http://purl.org/dc/elements/1.1/”
xmlns:sy=”http://purl.org/rss/1.0/modules/syndication/”
xmlns:admin=”http://webns.net/mvcb/”
xmlns:content=”http://purl.org/rss/1.0/modules/content/”
xmlns:cc=”http://web.resource.org/cc/”
xmlns=”http://purl.org/rss/1.0/”>

<channel rdf:about=”<$MTBlogURL$>”>
<title><$MTBlogName remove_html=”1″ encode_xml=”1″$> .:. Category – Design </title>
<link><$MTBlogURL$></link>
<description><$MTBlogDescription remove_html=”1″ encode_xml=”1″$></description>
<dc:language><$MTBlogLanguage$></dc:language>
<dc:creator>[Your Name Here]</dc:creator>
<dc:date><MTEntries lastn=”1″><$MTEntryDate format_name=”W3CDTF”$></MTEntries></dc:date>
<admin:generatorAgent rdf:resource=”http://www.typepad.com/?v=<$MTVersion$>” />
<MTBlogIfCCLicense>
<cc:license rdf:resource=”<$MTBlogCCLicenseURL$>” />
</MTBlogIfCCLicense>

<items>
<rdf:Seq><MTEntries category=”Design” lastn=”15″>
<rdf:li rdf:resource=”<$MTEntryPermalink encode_xml=”1″$>” />
</MTEntries></rdf:Seq>
</items>

</channel>

<MTEntries category=”Design” lastn=”15″>
<item rdf:about=”<$MTEntryPermalink encode_xml=”1″$>”>
<title><$MTEntryTitle encode_xml=”1″$></title>
<link><$MTEntryPermalink encode_xml=”1″$></link>
<description><$MTEntryExcerpt encode_xml=”1″$></description>
<MTWeblogIfFullRSSContent>
<content:encoded><$MTEntryBody encode_xml=”1″$></content:encoded>
</MTWeblogIfFullRSSContent>
<MTEntryCategories>
<dc:subject><$MTCategoryLabel encode_xml=”1″$></dc:subject>
</MTEntryCategories>
<dc:creator><$MTEntryAuthor encode_xml=”1″$></dc:creator>
<dc:date><$MTEntryDate format_name=”W3CDTF”$></dc:date>
</item>
</MTEntries>

</rdf:RDF>

Step 7: Save and Publish the new template.

Step 8: Copy the URL for the category feed to test it in your RSS reader of choice. The URL will be something like: http://usabilityworks.typepad.com/uwdotorg/categoryusability.rdf.

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 category feed and put a link to this post in it. ;)

As I said in the previous post, if you have questions, or feel I have left something out, add a comment and I will follow up.

Tags: , , , , , ,

Comments are closed.