How to get Your Roller 3.0 Blogroll in OPML format

posted 09:44AM Dec 07, 2006 with tags blogs opml roller tips by Lars Trieloff

Roller always had the feature to output your blogroll as OPML. This list of bookmarks was helpful for migrating from Roller to another weblog service or to feed a feedreader that support OPML Reading Lists like Blogbridge or Straw. With these Reading Lists, the feed reader will automatically subscribe to all feeds listed in your blogroll.

Unfortunately, this fetaure is gone in Roller 3.0

Personally, I don't think we need OPML feeds in the URL structure. If somebody wants an OPML feed, he/she can add a page and generate OPML using models/macros.

Fortunately creating these macros is quite easy: In your Roller backend, go to Preferences >Templates, add a new page, called OPML and copy and paste following template code.

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
    <title>Lars Trieloff's Bookmarks</title>
</head>
<body>
#set($rootFolder = $model.weblog.getBookmarkFolder("/"))
#foreach ($bookmark in $rootFolder.bookmarks)
   <outline 
     text="$bookmark.name" 
     type="rss" xmlUrl="$utils.escapeXML($bookmark.feedUrl)" 
    htmlUrl="$utils.escapeXML($bookmark.url)" />
#end
</body>
</opml>

After saving the template, the OPML file will be made available at the URL WeblogBaseURL/page/OPML.

Comments:

Post a Comment:
Comments are closed for this entry.