March 2008 Archives
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:






















Recent Comments
phichit on Joomla Plugin: Curvaceous: You must b
Solomon on Movable Type Plugin: Sociotags: Ah, bummer
Ole Wolf on Movable Type Plugin: Sociotags: Solomon: y
Solomon on Movable Type Plugin: Sociotags: Would like
Ole Wolf on Movable Type Plugin: Joomsayer: Joe: yes,
joed86 on Movable Type Plugin: Joomsayer: I have cus
epete on Joomla Plugin: Joomsayer: I can't ge
epete on Joomla Plugin: Joomsayer: I can't ge
Tom on Movable Type Plugin Curvaceous 1.0 Released: Nice work.