— 3 January 2006 —

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.

Respond Eloquently Below

April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002
Snook Approved!