November 06, 2003
Without the blogroll, the blogosphere would be a lonely place. Some blogs present a very select group of links in their blogroll. Others appear to include every blog they have a valid URL for. Often the lists are categorized by some (often uncomprehensible) criteria. Type and method aside, every blog needs some form of blogrolling.

A few folk maintain their blogrolls by manually editing html. A large number of blogs use the fantastic service provided by blogrolling.com. They provide a very easy way to add new links and are always adding new features. However, it is also possible to use Movable Type to maintain your own blogroll, which is what I have chosen to do.

I used to use blogrolling.com and I was satisfied with everything except the speed. If their server lagged, then my site loaded slow. If their site was down, my site loaded everything up to the blogroll and never loaded the rest of my site. Using a local blogroll means it loads as fast as the rest of my site and it is always available as long as my site is up.

Here are step by step instructions on creating a Movable Type blogroll:

Step 1: Create a New Weblog

Movable Type allows multiple weblogs. From the Main Menu, select Create New Weblog and name it Blogroll.

Step 2: Remove Unneded Templates

Select the Templates button and remove all defined templates except for Main Index.

Step 3: Modify the Index Template

Edit Main Index template and set the Output file to 'blogroll.html'. Replace the Template Body with the template shown below:
<MTCategories>

  <!-- CATEGORY TITLE -->
  <h3 class="blogroll_title">
    <$MTCategoryDescription$>
  </h3>
    
  <div class="blogroll_section">

    <!-- ENTRIES -->
    <MTEntries sort_by="title" sort_order="ascend">
 
      <div class="blogroll_entry">

        <!-- LINK -->
        <A HREF="<$MTEntryBody$>" alt="<$MTEntryTitle$>" target="_blank">
          <$MTEntryTitle$>
        </a>
      </div>

    </MTEntries>

  </div>

</MTCategories>
*You will want to either add the new classed (blogroll_title, blogroll_section & blogroll_entry) to the stylesheet for your blog or modify this template to use styles you have already defined.

Step 4: Define Template Categories

This is required, even if you just want your blogroll in one category. Create each category and be sure to add a category description. The blogroll sorts the categories by name but displays the description instead. The reason for this is to allow the categories to be displayed in an order other than alphabetical.

Step 5: Add Blogroll Entries

This is as simple as adding New Entries to the Blogroll Weblog. The title should be the name of the site you are linking through. The content should contain the URL (site address) including the leading http://. Here is a very useful sample which you will probably want to add anyways:
Title: King of Fools
Entry Body:http://king-of-fools.com

Step 6: Add the Blogroll to Your Blog Template

Determine which page types should include the blogroll. For each of those templates, add the following line at the place where the blogroll should appear:
<$MTInclude file="blogroll.html"$>
That is all that is required. Maintaining the blogroll is as simple as adding, editing and deleting entries in the Blogroll Weblog. It must be noted that whenever the blogroll is changed, it is necessary to rebuild the primary blog so the modified blogroll.html is incorporated into your site.

If you have questions or issues with this, feel free to contact me. My next technical article will show how to use the same method to manage an Amazon Associates reading list (like the one located in the bar to the right). UPDATE: I failed to mention that it is important to set the Default Text Formatting for the blogroll weblog to None.

Categories
Archives
March 2010
S M T W T F S
  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 29 30 31      

Complete Archives

Tools
Search:
  Advanced Search

Mailing List:



Currently Reading
Recently Read
Animal Farm

Animal Farm
George Orwell

Life of Pi

Life of Pi
Yann Martel

The Fourth K

The Fourth K
Mario Puzo

Catch 22

Catch 22
Joseph Heller

the Sicilian

the Sicilian
Mario Puzo

The Quantum Rose

The Quantum Rose
Catherine Asaro

Members
Sponsors
Blogroll
Links
Stats
Entries: 2147
Comments: 2925
Trackbacks: 665
Members: 258

Most Recent:
  Entry: 11/09/08 9:38
  Comment: 11/17/08 12:27
  Visitor: 03/20/10 2:59

Powered by:
  ExpressionEngine

Extreme Tracking