OPML Template for Movable Type 4.1
I'll confess that I haven't found much use for an OPML feed yet for a blog, but some geeks might insist that if it can be done, then it should be done.
The following template is an example of how to create an OPML feed for your Movable Type 4.1 blog that traverses through the categories and subcategories, listing the entries within each:
Name the feed file something sensible, say, "index.opml" and select to have it published automatically.
To also enable autodiscovery of the feed, add the following line to the Header template, between the <head> and </head> tags:
I have no idea how it will render in any OPML reader, because I haven't been able to locate one. However, the feed appears to validate correctly.
The following template is an example of how to create an OPML feed for your Movable Type 4.1 blog that traverses through the categories and subcategories, listing the entries within each:
<?xml version="1.0" encoding="<$MTPublishCharset$>"?> <opml version="1.1"> <head> <title><$MTBlogName remove_html="1" encode_xml="1"$></title> <MTEntries lastn="1"> <ownerName><$MTEntryAuthorDisplayName encode_xml="1"$></ownerName> <MTIfNonEmpty tag="MTEntryAuthorEmail">
<ownerEmail><$MTEntryAuthorEmail encode_xml="1"$></ownerEmail>
</MTIfNonEmpty> <dateModified><$MTEntryModifiedDate format_name="rfc822"$></dateModified> </MTEntries></head> <body> <MTTopLevelCategories> <MTIfNonZero tag="MTCategoryCount"> <outline text="<$MTCategoryLabel remove_html="1" encode_xml="1"$>"
type="link" url="<$MTCategoryArchiveLink encode_xml="1"$>"
created="<$MTDate format_name="rfc822"$>"> <MTEntries>
<outline text="<$MTEntryTitle remove_html="1" encode_xml="1"$>"
type="link" url="<$MTEntryPermalink encode_xml="1"$>"
created="<$MTEntryDate format_name="rfc822"$>" /> </MTEntries></MTIfNonZero><MTSubcatsRecurse></outline> </MTTopLevelCategories></body> </opml>
Name the feed file something sensible, say, "index.opml" and select to have it published automatically.
To also enable autodiscovery of the feed, add the following line to the Header template, between the <head> and </head> tags:
<link rel="subscriptions" type="text/x-opml" title="<$MTBlogName encode_html="1"$>"
ref="<$MTBlogURL$>index.opml" />
I have no idea how it will render in any OPML reader, because I haven't been able to locate one. However, the feed appears to validate correctly.
If you liked this post, share it with others:
Categories
Movable Type0 TrackBacks
Listed below are links to blogs that reference this entry: OPML Template for Movable Type 4.1.
TrackBack URL for this entry: http://blog.blazingangles.net/MT/mt-tb.cgi/468






















Leave a comment