Not a developer? Go to


Creating an RSS template

The RSS feed template was deprecated in MT 4.1 in favor of the atom template which offers all the same functionality as RSS.

  1. Create a new index template. Name it RSS Feed and specify the output file as rss.xml. Use the following as the template code:

        <$mt:HTTPContentType type="application/rss+xml"$><?xml version="1.0" encoding="<$mt:PublishCharset$>"?>
        <rss version="2.0">
                <title><$mt:BlogName remove_html="1" encode_xml="1"$></title>
                <description><$mt:BlogDescription remove_html="1" encode_xml="1"$></description>
                <language><$mt:BlogLanguage ietf="1"$></language>
                <copyright><__trans phrase="Copyright [_1]" params="<$mt:Date format="%Y"$>"></copyright>
                <lastBuildDate><mt:Entries lastn="1"><$mt:EntryDate format_name="rfc822"$></mt:Entries></lastBuildDate>
        <mt:Entries lastn="15">
                    <title><$mt:EntryTitle remove_html="1" encode_xml="1"$></title>
                    <description><$mt:EntryBody encode_xml="1"$></description>
                    <link><$mt:EntryPermalink encode_xml="1"$></link>
                    <guid><$mt:EntryPermalink encode_xml="1"$></guid>
                        <category domain=""><$mt:CategoryLabel remove_html="1" encode_xml="1"$></category>
                        <category domain=""><$mt:TagName remove_html="1" encode_xml="1"$></category>
                    <pubDate><$mt:EntryDate format_name="rfc822"$></pubDate>
  2. Save the RSS Feed index template.

  3. Publish the RSS Feed index template.
  4. Add the following to the template containing your html header code. (Should be the “Header” or “HTML head” template module):

    <link rel="alternate" type="application/atom+xml" title="Atom" href="<$mt:Link template="RSS Feed"$>" />
  5. Republish blog.


1 Comment

Webmaestro on March 2, 2010, 10:48 a.m. Reply

Step 4 indicates type="application/atom+xml" but since this is about RSS, shouldn’t it be type="application/rss+xml"?