RSS Templates for TypePad Pro/MovableType
Technology, MovableType, TypePad February 6th, 2004 | Share ThisI 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. 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
<?xml version="1.0" encoding="iso-8859-1"?> <rss version="2.0" 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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <title><$MTBlogName remove_html="1" encode_xml="1"$></title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <dc:language>en-us</dc:language> <dc:creator><MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries></dc:creator> <dc:rights>Copyright <$MTDate format="%Y"></dc:rights> <dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date> <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" /> <admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<MTEntries lastn="15"> <item> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <link><$MTEntryLink encode_xml="1"$></link> <description><$MTEntryExcerpt remove_html="1" encode_xml="1"$></description> <guid isPermaLink="false"><$MTEntryID$>@<$MTBlogURL$></guid> <content:encoded><![CDATA[<$MTEntryBody$><MTEntryIfExtended><p><a href="<$MTEntryLink$>" title="Continue Reading: <$MTEntryTitle$>">Continue reading <$MTEntryTitle$>...</a></p></MTEntryIfExtended>]]></content:encoded> <dc:subject><MTEntryCategories glue=" | "><$MTCategoryLabel remove_html="1" encode_xml="1"$></MTEntryCategories></dc:subject> <dc:date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date> </item> </MTEntries>
</channel> </rss>
Enhanced Feed: Full posts with comments
Template Name: RSS 2.0 full plus comments
Output File: fullposts.rdf
<?xml version="1.0" encoding="iso-8859-1"?> <rss version="2.0" 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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <title><$MTBlogName remove_html="1" encode_xml="1"$>: With Comments</title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <dc:language>en-us</dc:language> <dc:creator><MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries></dc:creator> <dc:rights>Copyright <$MTDate format="%Y"></dc:rights> <dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date> <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" /> <admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<MTEntries lastn="15"> <item> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <link><$MTEntryLink encode_xml="1"$></link> <description><$MTEntryExcerpt remove_html="1" encode_xml="1"$></description> <guid isPermaLink="false"><$MTEntryID$>@<$MTBlogURL$></guid> <content:encoded><![CDATA[<$MTEntryBody$><MTEntryIfExtended><p><a href="<$MTEntryLink$>" title="Continue Reading: <$MTEntryTitle$>">Continue reading <$MTEntryTitle$>...</a></p></MTEntryIfExtended><MTEntryIfAllowComments><p>Comments on this Entry:</p><MTComments><h4><MTCommentAuthorLink show_email="0"> on <MTCommentDate format="%b %e, %Y %l:%M %p">:</h4><MTCommentBody></MTComments></MTEntryIfAllowComments>]]></content:encoded> <dc:subject><MTEntryCategories glue=" | "><$MTCategoryLabel remove_html="1" encode_xml="1"$></MTEntryCategories></dc:subject> <dc:date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date> </item> </MTEntries>
</channel> </rss>
Short Feed: Excerpts Only
Template Name: RSS 2.0 Excerpts
Output File: excerpts.rdf
<?xml version="1.0" encoding="iso-8859-1"?> <rss version="2.0" 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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <title><$MTBlogName remove_html="1" encode_xml="1"$>: Excerpts</title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <dc:language>en-us</dc:language> <dc:creator><MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries></dc:creator> <dc:rights>Copyright <$MTDate format="%Y"></dc:rights> <dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date> <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" /> <admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<MTEntries lastn="15"> <item> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <link><$MTEntryLink encode_xml="1"$></link> <description><$MTEntryExcerpt remove_html="1" encode_xml="1"$></description> <guid isPermaLink="false"><$MTEntryID$>@<$MTBlogURL$></guid> <content:encoded><![CDATA[<$MTEntryExcerpt$>]]></content:encoded> <dc:subject><MTEntryCategories glue=" | "><$MTCategoryLabel remove_html="1" encode_xml="1"$></MTEntryCategories></dc:subject> <dc:date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date> </item> </MTEntries>
</channel> </rss>
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.
<?xml version="1.0" encoding="iso-8859-1"?> <rss version="2.0" 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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <title><$MTBlogName remove_html="1" encode_xml="1"$>: Comments</title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <dc:language>en-us</dc:language> <dc:creator><MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries></dc:creator> <dc:rights>Copyright <$MTDate format="%Y"></dc:rights> <dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></MTEntries></dc:date> <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" /> <admin:errorReportsTo rdf:resource="mailto:<MTEntries lastn="1"><$MTEntryAuthorEmail$></MTEntries>"/> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<MTComments lastn="20"> <item> <MTCommentEntry> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <link><$MTEntryPermalink encode_xml="1"$>#c<$MTCommentID$></link> <description><$MTCommentBody remove_html="1" encode_xml="1"$></description> <guid isPermaLink="false"><$MTCommentID$>@<$MTBlogURL$></guid> <content:encoded><![CDATA[<MTCommentAuthorLink show_email="0">: <$MTCommentBody$>]]></content:encoded> </MTCommentEntry> <dc:date><$MTCommentDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></dc:date> </item> </MTComments>
</channel> </rss>
[See also: Atom feed now available | Issue with my comments-only feed | A teense faster, I hope | Destinations | Stoopid. With two ‘O’s. ]
February 6th, 2004 at 5:01 pm
sweet!
February 7th, 2004 at 9:52 am
Want multiple RSS feeds?
Michael Hanscom has a feature on how to use RSS Templates for TypePad Pro/MovableType” href=”http://www.michaelhanscom.com/eclecticism/2004/02/rss_templates_f.html”>eclecticism > RSS Templates for TypePad Pro/MovableType and, in detail, how to add seve…
February 8th, 2004 at 12:04 am
Thanks.
Will try them out later.
Hey, how’d you do that live comment thing? Now I’ll have to investigate…
February 8th, 2004 at 11:14 am
Jon — here are the instructions for the live comment preview. Enjoy!
February 9th, 2004 at 10:41 pm
Issue with my comments-only feed
I have no idea if anyone other than myself is currently subscribing to my ‘comments only’ RSS feed, but I’ve noticed an odd issue with it that I haven’t been able to troubleshoot yet. I’ve asked for help on the TypePad User Group, but I wanted to menti…
February 16th, 2004 at 9:08 am
Feed reader needed
Hoy se me venció el trial de FeedDeamon, y tuve que volver a hacer el recorrido manual por todos los blogs que leo…que incomodo!!! Me re acostumbre a abrir el FD, darle a Update Channel y ver que blogs tienen…
February 17th, 2004 at 4:46 pm
Algunos cambios
Como quizas se dieron cuenta, hice un par de cambios en el template. Nada muy drástico, obviamente: simplemente quería sacarle las tablas, y de paso, “liberar” las 2 cajas que rodeaban a los posts y al menú. (También cambié un par de cosas en la css, q…
April 29th, 2004 at 2:04 am
useRss
I’m really happy to see more users of weblog syndication tools joining in the conversation about rss and the introduction of alternative tools and protocols (whatever that means).
June 23rd, 2004 at 4:48 pm
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
June 23rd, 2004 at 10:39 pm
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!
June 23rd, 2004 at 10:49 pm
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.
June 24th, 2004 at 10:04 am
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.
June 29th, 2004 at 8:04 am
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.
August 31st, 2004 at 12:53 am
RSS
Michael Hanscom created a lovely stylesheet that actually seemed to work when I dropped it in. Hopefully my RSS2.0 feed will no longer be a garbled piece of crap and I will be more inclined to blog as I no longer want to stab myself in the eye when I s…
February 5th, 2005 at 1:26 pm
New RSS Feeds for B2B Lead Generation Blog Readers
For those who use RSS - I’ve added 2 new feeds you might like. Full posts with comments This is the most information-rich feed. The full front-page text of each post is included (extended entries are not included), along with