[MTOS-dev] hAtom in MT 4.1
Niall Kennedy
niall at niallkennedy.com
Fri Jan 18 17:48:15 PST 2008
Author is a required element of an hAtom microformat entry [1] and
the Atom Syndication Format [2].
"""
atom:entry elements MUST contain one or more atom:author elements,
unless the atom:entry contains an atom:source element that contains an
atom:author element or, in an Atom Feed Document, the atom:feed
element contains an atom:author element itself.
"""
Translated that means that each blog entry has one or more authors
unless the entire blog is written by a single author, in which case
you should declare the author data at the feed level. If the blog
entry is simply copied or republished from another source, such as a
list of favorite blog posts from around the web, it's OK to not
specify the author of the blog entry and instead specify the author
defined in the original entry.
The current Atom template [3] presumes we have at least
EntryAuthorDisplayName.
"""
<author>
<name><$MTEntryAuthorDisplayName encode_xml="1"$></name>
<MTIfNonEmpty tag="MTEntryAuthorURL"><uri><$MTEntryAuthorURL
encode_xml="1"$></uri></MTIfNonEmpty>
</author>
"""
-Niall Kennedy
[1] http://microformats.org/wiki/hAtom#Entry_Author
[2] http://www.apps.ietf.org/rfc/rfc4287.html#sec-4.1.2
[3] http://movabletype.org/opensource/nightlies/MTOS-4.1-en-release-27-r1260-20080116/default_templates/atom.mtml
On Jan 18, 2008, at 5:28 PM, Bud Gibson wrote:
> BTW, how can MT publish a conformant atom feed but not a conformant
> hatom page?
More information about the MTOS-dev
mailing list