Creating categorized RSS feeds using Movable Type

I love Movable Type's customization features. I just used this to auto-generate RSS feeds per category, and link to these feeds from the main page. I previously had one custom RSS template for, but this is a much better solution.

How did I do it?

  • Go to your RSS template and copy its contents to the clipboard.
  • Go back to the templates page and click "create new archive template".
  • Give it some meaningful name and paste the RSS template into the template body.
  • Now go to "weblog config | archiving" and press "add new".
  • Select an archive type of category and pick your new template.
  • Set the name of the archive to rss_<$MTArchiveCategory dirify="1"$>.xml or something similar.
  • Now in your main index template, find the MTArchiveList tag, and add a link to rss_<$MTArchiveTitle dirify="1"$>.xml inside it.
  • (see update below)
  • et voilà - you've got RSS feeds per category!

UPDATE: I forgot that the default template does not have an archive-list. So don't do anything to the existing MTArchiveList tag in your main template, but instead add this block somewhere in there:

<div class="sidetitle">
<div class="side">
<MTArchiveList archive_type="Category">
<a href="rss_<$MTArchiveTitle dirify="1"$>.xml">[xml]</a>
<a href="cat_<$MTArchiveTitle dirify="1"$>.html"><MTArchiveTitle></a><br />
oh and my regular category archive is setup as cat_<$MTArchiveCategory dirify="1"$>.html in "weblog config | archiving".

TrackBack URL for this entry:

SharpReader RSS Aggregator
I'm currently test-driving SharpReader RSS Aggregator and so far, it's great! While on the site, I discovered some instructions for...

Trackback from ETC. Indulging my inner geek at April 7, 2003 4:00 PM

Site Layout Changes
As you may have noticed, I have changed the physical layout of my site a little bit. With some guidance from the wonderful article at public virtual MemoryStream, I have moved away from using MovableType to manage multiple web logs,...

Trackback from at April 10, 2003 4:15 AM

hi luke,

first of all thanks for you clear discription, but i am getting the wrong url to a generated xml and html files.
the program saves it into my blog directory and not in archives one. any ideas?

Posted by max at June 13, 2003 11:11 AM

Improved RSS feeds
I’m updating the RSS templates to include additional metadata, which should give us a head-start if we decide to use TrackBack and other advanced features. I’m also adding RSS feeds for individual categories for more flexible presentation. ...

Trackback from Bryan Costin's Blog at August 8, 2003 11:29 AM

Category feeds
Each category now has its own RSS feed. That means that if you're only interested in my Mozilla posts, or perhaps you only want to read my Program Views, then you can subscribe to a feed which only offers you what you want.

Trackback from Neil's World at August 11, 2003 2:50 PM

How to post only China-related entries in LiC Aggregator
You might want to know more about my neighbour's new...

Trackback from Living in China at January 5, 2004 11:19 AM

Planet Apache
Ted and Thom are readying a Planet Apache blog aggregator. Let's see if I can get categorized feeds working in...

Trackback from Outer Web Thought Log at January 11, 2004 2:59 AM

Flying straight past the Planet
The next task on my list after installing the new version of MovableType this evening would have been setting up categorised feeds so I can participate in Planet Apache. Thankfully, Thom has saved me from that with his timely attitude adjustment. I mus...

Trackback from Bagel Belly Blog at January 20, 2004 5:46 AM

Customizing Movable Type
I'm working on our church's website and want to use Movable Type for the youth section to allow the youth leaders to update information for parents, ect. I'm also looking at various ways to allow others to update their sections...

Trackback from A peek inside Jesse's Head at March 17, 2004 2:27 PM

Blog Updates
I've made a few minor updates to the blog. Changed the Comments (0) line to be more inviting and a little smarter. Now it counts the comments when there are some, it asks you add your comment when there isn't....

Trackback from A peek inside Jesse's Head at March 22, 2004 11:01 PM

Categorising RSS Feeds
Thanks to Google and Luke Hutteman for his post on how to produce categorised RSS feeds in Movable Type....

Trackback from ~lee/ at March 26, 2004 2:48 AM
This discussion has been closed. If you wish to contact me about this post, you can do so by email.