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
W. Spires on Cloning Allows Second Coming: I know tha
chas.lehardy on Movable Type Plugin: Sociotags: I, too, lo
https://me.yahoo.com/a/534EHyItpPHrgHOe4kAK91M-#466dd on Movable Type Plugin: Sociotags: I am also
Ole Wolf on Joomla Plugin: Curvaceous: da.phreak:
Ole Wolf on Joomla Plugin: Curvaceous: Alan: I kn
alan on Joomla Plugin: Curvaceous: STILL can'
Ole Wolf on Movable Type Plugin: Joomsayer: mattjfox:
mattjfox on Movable Type Plugin: Joomsayer: Does this
mattjfox on Movable Type Plugin: Sociotags: Thanks thi