Manufactured Environments by Daniel Stout
Manufactured Environments by Daniel Stout

Maltese Cross Movable Type template for an Atom 1.0 feed

Posted by Daniel Stout on Sat 7 Apr 2007 at 1:06 AM

I’m always tinkering with the back-end of Manufactured Environments — trying out new ideas and learning. One recent change is that we switched from an RSS 2.0 feed for the main blog to Atom 1.0. I figured it was time to go with this more comprehensive and rational solution for syndication. One advantage of the Atom feed is that it offers both summaries and full-text posts of the blog.

I see that the Atom 1.0 specification has room for a tag analogous to RSS 2.0’s enclosure tag, which is used a lot for podcasting. I’m using Brandon Fuller’s MT-Enclosures plug-in with Movable Type, which produces enclosure tags for RSS 2.0 feeds but not Atom feeds. Also, Feedburner uses RSS 2.0 for feeds with podcasting enabled. So for the moment, I won’t worry about podcasting feeds via Atom, although it appears relatively easy to setup.

The Atom 1.0 specification was my guide for developing the Movable Type Atom 1.0 template that I created. I used the default template as a starting point and simply enhanced it. It takes into account more of the features available in Atom. If you have suggestions or tweaks, let me know.

Without further ado, here is my Movable Type Atom 1.0 template for Manufactured Environments. Download file.

<$MTHTTPContentType type="application/atom+xml"$><?xml version="1.0" encoding="<$MTPublishCharset$>"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<title type="text"><$MTBlogName remove_html="1" encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTBlogURL encode_xml="1"$>" />
<link rel="self" type="application/atom+xml" href="<$MTBlogURL$>atomFB.xml" />
<id>tag:<$MTBlogHost exclude_port="1" encode_xml="1"$>,<$MTDate format="%Y"$>:<$MTBlogRelativeURL encode_xml="1"$>/<$MTBlogID$></id>
<updated><MTEntries lastn="1"><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></MTEntries></updated>
<MTIfNonEmpty tag="MTBlogDescription"><subtitle><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle></MTIfNonEmpty>
<generator uri="http://www.sixapart.com/movabletype/" version="<$MTVersion$>"><$MTProductName version="1"$></generator>
<icon>http://manufacturedenvironments.com/media/atomicon.jpg</icon>
<logo>http://manufacturedenvironments.com/media/atomlogo.jpg</logo>
<rights type="html">Copyright &amp;copy; 2007 Daniel R Stout</rights>
<geo:lat>44.261944</geo:lat>
<geo:long>-88.415278</geo:long>

<MTEntries lastn="15">
<entry>
<title type="html"><$MTEntryTitle encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>" />
<id><$MTEntryAtomID$></id>

<published><$MTEntryDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published>
<updated><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></updated>

<summary type="html">
<$MTEntryExcerpt encode_xml="1"$>
</summary>
<author>
<name><$MTEntryAuthorDisplayName encode_xml="1"$></name>
<MTIfNonEmpty tag="MTEntryAuthorURL"><uri><$MTEntryAuthorURL encode_xml="1"$></uri></MTIfNonEmpty>
<MTIfNonEmpty tag="MTEntryAuthorEmail"><email><$MTEntryAuthorEmail encode_xml="1"$></email></MTIfNonEmpty>
</author>
<MTEntryCategories><category term="<$MTCategoryLabel encode_xml="1"$>" /></MTEntryCategories>
<MTEntryIfTagged><MTEntryTags><category term="<$MTTagID encode_xml="1"$>" label="<$MTTagName encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#tag" /></MTEntryTags></MTEntryIfTagged>
<content type="html" xml:lang="<$MTBlogLanguage ietf="1"$>" xml:base="<$MTBlogURL encode_xml="1"$>">
<$MTEntryBody encode_xml="1"$>
<$MTEntryMore encode_xml="1"$>
<MTEntryIfTagged><![CDATA[<p class="technorati">Tags: <MTEntryTags glue=" "><a href="http://manufacturedenvironments.com/tag/<$MTTagName encode_url="1"$>" rel="tag"><$MTTagName$></a></MTEntryTags></p>]]></MTEntryIfTagged>
</content>
</entry>
</MTEntries>
</feed>

Tags: · · · ·

Leave a comment

(Required)

(Required, but not displayed)



Creative Commons License
This weblog is licensed under a Creative Commons License.
Validation: XHTML 1.0 StrictCSS 2.1Atom 1.0

manufactured environments

This is a blog about technology, music, vinyl, turntables and more.

Blog Feed: Atom Feed
Archives: 2000 to 2008
Classic Entries
The Tag Cloud
Contact
About: Daniel Stout

my other blogs

Manufactured Fotos is a collection of my photography.

Manufactured Podcasts is a podcast featuring poetry and PDFcasts.

monthly archives