RSS Templates for TypePad Pro/MovableType

I just had someone ask how I was able to create the four RSS feeds for my site. Here’s a quick rundown, along with the templates themselves, should anyone else want to do the same thing. All the templates are RSS 2.0, and have been checked with the RSS Feed Validator.

I just had someone [ask][1] how I was able to create the [four RSS feeds][2] for my site. Here’s a quick rundown, along with the templates themselves, should anyone else want to do the same thing. All the templates are RSS 2.0, and have been checked with the [RSS Feed Validator][3].

[1]: http://www.michaelhanscom.com/eclecticism/2004/02/rss_feeds_updat.html#c573917 “Comment from Steven Kaye”
[2]: http://www.michaelhanscom.com/eclecticism/feeds.html “RSS Feeds”
[3]: http://feedvalidator.org/ “Feed Validator for Atom and RSS”

TypePad users will need a Pro account, and will also need to be using an Advanced Template set, as you’ll need to create a new template for each RSS feed you want to add. I give each template a name that’s fairly indicative of which feed it is for, and I make sure that the output file is also named similarly.

Here are the templates I use:

####Default feed: Full text, no comments####

**Template Name: `RSS 2.0 Full`**
**Output File: `index.rdf`**


<$MTBlogName remove_html="1" encode_xml="1"$> <$MTBlogURL$> <$MTBlogDescription remove_html="1" encode_xml="1"$>
en-us
<$MTEntryAuthorEmail$>
Copyright <$MTDate format="%Y">
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>
<$MTEntryAuthorEmail$>“/>
hourly
1
2000-01-01T12:00+00:00



<$MTEntryTitle remove_html="1" encode_xml="1"$> <$MTEntryLink encode_xml="1"$> <$MTEntryExcerpt remove_html="1" encode_xml="1"$>
<$MTEntryID$>@<$MTBlogURL$>

<$MTCategoryLabel remove_html="1" encode_xml="1"$>
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>


####Enhanced Feed: Full posts with comments####

**Template Name: `RSS 2.0 full plus comments`**
**Output File: `fullposts.rdf`**


<$MTBlogName remove_html="1" encode_xml="1"$>: With Comments <$MTBlogURL$> <$MTBlogDescription remove_html="1" encode_xml="1"$>
en-us
<$MTEntryAuthorEmail$>
Copyright <$MTDate format="%Y">
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>
<$MTEntryAuthorEmail$>“/>
hourly
1
2000-01-01T12:00+00:00



<$MTEntryTitle remove_html="1" encode_xml="1"$> <$MTEntryLink encode_xml="1"$> <$MTEntryExcerpt remove_html="1" encode_xml="1"$>
<$MTEntryID$>@<$MTBlogURL$>

on : ]]>
<$MTCategoryLabel remove_html="1" encode_xml="1"$>
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>


####Short Feed: Excerpts Only####

**Template Name: `RSS 2.0 Excerpts`**
**Output File: `excerpts.rdf`**


<$MTBlogName remove_html="1" encode_xml="1"$>: Excerpts <$MTBlogURL$> <$MTBlogDescription remove_html="1" encode_xml="1"$>
en-us
<$MTEntryAuthorEmail$>
Copyright <$MTDate format="%Y">
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>
<$MTEntryAuthorEmail$>“/>
hourly
1
2000-01-01T12:00+00:00



<$MTEntryTitle remove_html="1" encode_xml="1"$> <$MTEntryLink encode_xml="1"$> <$MTEntryExcerpt remove_html="1" encode_xml="1"$>
<$MTEntryID$>@<$MTBlogURL$>
]]>
<$MTCategoryLabel remove_html="1" encode_xml="1"$>
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>


####Comments only feed####

**Template Name: `RSS 2.0 Comments`**
**Output File: `comments.rdf`**

Update: The code here has been slightly altered since the original posting to account for an [issue with incorrect dates][4].

[4]: http://www.michaelhanscom.com/eclecticism/2004/02/issue_with_my_c.html “Issue with my comments-only feed”


<$MTBlogName remove_html="1" encode_xml="1"$>: Comments <$MTBlogURL$> <$MTBlogDescription remove_html="1" encode_xml="1"$>
en-us
<$MTEntryAuthorEmail$>
Copyright <$MTDate format="%Y">
<$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>
<$MTEntryAuthorEmail$>“/>
hourly
1
2000-01-01T12:00+00:00




<$MTEntryTitle remove_html="1" encode_xml="1"$> <$MTEntryPermalink encode_xml="1"$>#c<$MTCommentID$> <$MTCommentBody remove_html="1" encode_xml="1"$>
<$MTCommentID$>@<$MTBlogURL$>
: <$MTCommentBody$>]]>

<$MTCommentDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$>


Author: djwudi

Enthusiastic ambivert. Geeky, liberal, friendly, curious, feminist ally; trying to be a good person. (he/him)

0 thoughts on “RSS Templates for TypePad Pro/MovableType”

  1. Pingback: ad++ Weblog
  2. Pingback: eclecticism
  3. Pingback: Desde mi ombligo
  4. This is awesome…thank you so much. I am clueless, but at least I use a mac, typepad, and netnewswire…so that much is good. I have gotten as far as going into the advanced template sets and adding the new templates for each kind of feed and saving that…but now my question is: how do I actually get the new feeds to show up in the side bar on my page? Could you go one step farther to help this clueless person? If so, thanks! If not, thanks for what you’ve already done to help!
    And…I like the purple font color :-)

  5. Never mind – after a couple hours in the Typepad help section and examining the code that was already there and your lovely code which I am now happily using, I managed to get the three new RSS feeds up on my sidebar – now to figure out how to get rid of the old “Syndicate this site” link – I thought I removed the code for it, but it’s hanging in there…! Thank you so much!

  6. Sorry, one more question: the comments only feed (using your code) seems to be listing the items in backwards order (most recent at bottom). The other feeds do it “right” (most recent at top). Any idea why that would be or how I can change it to have the most recent comment at the top when I sort by “RSS Feed Order” in the aggregator? Thanks for any tips.

  7. Katherine — sorry I’ve been a bit slow in responding, but I’m glad you’ve been figuring out so much on your own! Fun, isn’t it? :)

    As far as the forward/reverse order of the comments feed, I’d never noticed that before, as I tend to keep my aggregator set to display sorted by time. However, I think that it should be an easy fix.

    The third ‘paragraph’ of the code starts with <MTComments lastn=”20″>. Try adding sort_order=”ascend” to that tag, so it looks like <MTComments lastn=”20″ sort_order=”ascend”>, rebuild the feed, and see if that did it. If they’re still showing up in the wrong order, change ascend to descend and try again (I can never keep it straight in my head which is which, silly as that might sound). That should do what you want.

    If not…well, then I’ll just hang my head in shame and admit that I’m clueless. :)

  8. Hi again, Michael…sorry it took me so long to respond on this…I finally got it checked out, and it’s “descend” that puts the most recent at the top. Thanks, that fixed it! The reason I needed it was that in NetNewsWire Lite you can’t sort by date, only by title or RSS Feed Order. Now I have regular NetNewsWire, so it’s not an issue, but it helps those other people using the Lite version.

  9. Pingback: Chasing Coffee

Leave a Reply