« new way to open and close comments and trackbacks on many entries | Main | RSS feeds for tags »

allow people to import lists of links from your blog

Suppose that you wanted to display a list of links to all the entries in Al-Muhajabah's Islamic Blogs. Given that there are well over 3000 entries, you would probably not actually want to do this. But suppose that you did.

I've created a file that allows you to do this: OPML List of Entries. To create this, I modified template code from Niall Kennedy. I removed my email address from the template. I also had to add the title attribute after testing with TypePad (see below) to get it to play well there. You can remove the MTOtherBlog tags since that's a quirk of my own installation with multiple blogs. To see my code, scroll down to "OPML List of Entries" here.

So, how do you display this? If you're using Movable Type, install the Outliner plugin. The following code works to create a list of links from the OPML file:

<MTOutliner opmllink="http://www.muhajabah.com/islamicblog/index.opml">
<MTOutlinerItems>
<p><a href="<$MTOutlinerItemHTML$>"><$MTOutlinerItemText$></a></p>
</MTOutlinerItems>
</MTOutliner>

With TypePad, you can import the OPML file into a TypeList. I had to add the redundant title attribute to each item to get it to import the title of each entry, otherwise it came in blank.

That wasn't so difficult after all, was it? If you use Outliner, every time that you rebuild the template with the Outliner code, it will pull the latest list of entries from the OPML feed. However, if you import the OPML into a TypeList, it will not update automatically, you'll just get what is in the feed at the time that you do the import.

Now that I've figured out how to do this and what it can be used for, I'll look into adding some other OPML feeds for Al-Muhajabah's Islamic Blogs, ones that are hopefully more useful than a list of links to more than 3000 entries.

Later: A list of OPML feeds I have created is available at the Index of Feeds.

Related

This tip is built on the following tip(s):

The following tip(s) expand on this tip:

This entry is about templates. The ten most recent entries also about this topic are:

RDF versions of your blog entries

RSS feeds for tags

creating a backup blog

show your revision history

show all comments by an author

a brief user's guide to mt-view.cgi

create a global listing of entries

show who you've cited

show who you've linked to

printable version, part 2

View all entries about templates.

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

February 2007

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2