MovableBlog: Archives: December 2003

A weblog about the Movable Type Publishing Platform and other geekery

December 19th, 2003

Another Way To Integrate del.icio.us in Movable Type »

There are already two methods of including del.icio.us links in your Movable Type weblog: this one using the GetXML plugin and this one using Perl and cron. There's no law saying there can't be another one, so after installing the MT-RSS plugin, place this code, with your modifications, somewhere in your index template:

<h4><a href="http://del.icio.us/username">del.ico.us</a> links</h4> <MTRSSFeed file="http://del.icio.us/rss/username"> <ul><MTRSSFeedItems lastn="5"> <li><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a> <MTRSSFeedItemDescriptionExists> - <$MTRSSFeedItemDescription$></MTRSSFeedItemDescriptionExists></li> </MTRSSFeedItems></ul> </MTRSSFeed>

Replace username with either your username. Alternatively, you can replace username with /tag/custom-tag (changing custom-tag to a del.icio.us tag like css), making the RSS URL http://del.icio.us/rss/tag/css. If you want, you can set a cron job to call mt-rebuild.pl to make any links you add to del.icio.us appear on your site, say, within the hour. That way, you wouldn't have to rebuild manually every time you post a few links to del.icio.us.

Posted by Richard at 02:14 AM | Category: MT | TrackBacks (9) | Comments (2)