I will be using Movable Type's default RSS 2.0 template, simply for size reasons. These template changes can apply just as easily to Atom feeds or any other feed template you can come up with.
First, here is the default template:
First, here is the default template:
"?>
<$MTBlogName remove_html="1" encode_xml="1"$>
<$MTBlogURL$>
<$MTBlogDescription remove_html="1" encode_xml="1"$>
<$MTBlogLanguage ietf="1"$>
Copyright <$MTDate format="%Y"$>
<$MTEntryDate format_name="rfc822"$>
http://www.sixapart.com/movabletype/?v=<$MTVersion$>
http://blogs.law.harvard.edu/tech/rss
<$MTEntryTitle remove_html="1" encode_xml="1"$>
<$MTEntryBody encode_xml="1"$>
<$MTEntryPermalink encode_xml="1"$>
<$MTEntryPermalink encode_xml="1"$>
<$MTEntryCategory remove_html="1" encode_xml="1"$>
<$MTEntryDate format_name="rfc822"$>
Next, we will substitute MTMultiBlogEntries for MTEntries. This will get the last 15 entries from the combined entry list of all of the included blogs. There are a number of options that will be available in the next major release of MultiBlog, but for now we will simply make use of the include_blogs attribute. In this example, the ids of the three blogs we wish to integrate will be 7, 21, and 24.
The blog ids can be retreived simply by going to the main menu for the particular blog and making note of the blog_id parameter in the URL.
Here are the modified portions of the template:
<$MTEntryDate format_name="rfc822"$>
<$MTEntryTitle remove_html="1" encode_xml="1"$>
<$MTEntryBody encode_xml="1"$>
<$MTEntryPermalink encode_xml="1"$>
<$MTEntryPermalink encode_xml="1"$>
<$MTEntryCategory remove_html="1" encode_xml="1"$>
<$MTEntryDate format_name="rfc822"$>
That's it!
For bonus points, let's add some information to the feed. We will add the blog name to the entry title so that entries from the different blogs can be distinguished.
Or, if you only want entries that are not from the current blog to have the blog names prepended to the titles:
If there are any other integration issues I can address, please let me know.
http://rayners.org/plugins/2005/08/tip_combining_m.html