[MTOS-dev] hAtom in MT 4.1

Niall Kennedy niall at niallkennedy.com
Wed Jan 16 23:34:05 PST 2008


   I added hAtom to my MT 4.01 blog last week. I took a look at the  
current MT 4.1 default templates and noticed a few areas that are not  
up to spec or otherwise in need of enhancement. Attached are my  
modifications to bring our default templates up to spec with hAtom.

http://microformats.org/wiki/hatom#Format


entry_metadata.mtml
  * vcard class is declared both inside and outside the conditional.  
should simply exist inside the conditional (line 4)
  * entry is missing required "author" element if  
EntryAuthorDisplayName not present. Perhaps we could output the author  
ID to comply with the spec for this required element.

categories.mtml
  * Each category link should have rel=tag. parsers will grab the last  
part of the URL, meaning category basename by default.

tags.mtml
  * rel=tag implementation assigns the final part of the URL as a tag  
value, not the element value. The current implementation will result  
in a tag of mt-search scoped to tags and the current blog ID (mt- 
search.cgi?tag=politics&blog_id=1), and not the desired tag name. We  
might consider removing rel=tag here to prevent a search engine  
indexing this data and creating user headaches when they try viewing a  
tag list on another site.


-Niall Kennedy
http://www.niallkennedy.com/blog/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: categories.mtml
Type: application/octet-stream
Size: 467 bytes
Desc: not available
Url : http://www.sixapart.com/pipermail/mtos-dev/attachments/20080116/22644577/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entry_metadata.mtml
Type: application/octet-stream
Size: 1121 bytes
Desc: not available
Url : http://www.sixapart.com/pipermail/mtos-dev/attachments/20080116/22644577/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tags.mtml
Type: application/octet-stream
Size: 415 bytes
Desc: not available
Url : http://www.sixapart.com/pipermail/mtos-dev/attachments/20080116/22644577/attachment-0002.obj 


More information about the MTOS-dev mailing list