Easy Blogroll in Movable Type 4

| | Comments (3) | TrackBacks (2)
Categories:
Movable Type 4 doesn't come with blogroll support right out of the box unless you're willing to perform a few tricks. You can wait until MT-Blogroll is ported to MT4, but if you desperately need your blogroll right now, there is something else you can do.

The secret is that your default MT4 installation includes the MultiBlog 2.0 plugin, which lets you include contents from another blog in your blog. By creating a new blog and using that for blogroll entries, you can include that blog in your current blog, and voila: you have your blogroll.

Create the Blogroll

Create a new blog named, say, "blogroll". In "blogroll," use an entry for each link, entering your blogroll links as follows:

  • Use categories to divide your blogroll into categories.
  • Each entry is a blogroll entry, where:
    • The title field is the title of the link.
    • The body is the actual link.
    • The extended body is a piece of non-linking text that appears together with the link.
    • The excerpt is a description of the link appearing when the visitor hovers the mouse over the link.
  • Then fill your blogroll with links.
Add Template Content to Your Existing Blog

In your existing blog, add the following section to your template where you want the blogroll to appear; I recommend creating a new widget template. This section includes the following lines of code, which will copy your "blogroll" entries and present them as links ordered by category and title:

<MTOtherBlog include_blogs="3">
<div class="blogroll widget">
<h3 class="widget-header">Blogroll</h3>

<div class="widget-content">
<MTCategories>
<div class="category"><$MTCategoryLabel$></div>

<ul>
<MTEntries sort_by="title" sort_order="ascend">
<li>
<a href="<$MTEntryBody convert_breaks="0"$>"
<MTIfNonEmpty tag="EntryMore">title="<$MTEntryExcerpt$>"</MTIfNonEmpty>
><$MTEntryTitle$></a>
<MTIfNonEmpty tag="EntryMore">
<span><$MTEntryMore convert_breaks="0"$></span>
</MTIfNonEmpty>
</li>
</MTEntries>
</ul>

</MTCategories>
</div></div>
</MTOtherBlog>

In the above, change include_blogs="3" in line 1 to use the ID of your new "blogroll" blog.

Finally, go to your blog's plugin settings for the Multiblog plugin. Create a new trigger and select the "blogroll" blog, choosing to rebuild indexes when the blog publishes an entry.

You're all set! You can always modify the style sheet template for your blog to fine-tune the appearance of your blogroll.
  • Currently 4.5/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 4.5/5 (11 votes cast)

If you liked this post, share it with others:
  • Digg it!
  • Add to Del.Icio.Us
  • Add to Technorati
  • Stumble It!
  • NewsVine
  • Slashdot
  • Google Bookmarks
  • YahooMyWeb
  • Live
  • Facebook
  • Facebook
  • Add this post to Ma.gnolia
  • Add this post to Reddit
  • Thoof it

Categories

2 TrackBacks

Listed below are links to blogs that reference this entry: Easy Blogroll in Movable Type 4.

TrackBack URL for this entry: http://blog.blazingangles.net/MT/mt-tb.cgi/30

» Creating A BlogRoll in MT4 from Movable Type 4

Arvind is going to update MT-Blogroll to support MT4 sometime soon, however, if you are impatient you can achieve a similar effect using the builtin features of MT4.... Read More

» tech: authors & blogroll from intercuts

The reason for this entry is that it's written using a different user and I wanted to see if other archive facilities get switched on because of it (such as author archives). Apparently not. There's a lot of learning involved... Read More

3 Comments

Fran Author Profile Page said:

Thank you.

OJWay Author Profile Page said:

Hi, I'm coming up with some nasty code using this approach. For example in the blogroll blog I have:

Title:Elvis Costello Wiki
Body: http://www.elviscostello.info/wiki/index.php/Main_Page
Extended: Unofficial Elvis Costello Wiki
(I don't see any way to add an excerpt)

And what I end up with in the main blog is:
http://www.elviscostello.info/wiki/index.php/Main_Page" title="http://www.elviscostello.info/wiki/index.php/Main_Page..." >Elvis Costello Wiki Unofficial Elvis Costello Wiki


Any suggestions?

Shiroi Hane Author Profile Page said:

Thanks for this, took me a while to figure out where to insert everything (which is the main reason I never had a blogroll in the first place, but whatever) but it's working fine now (except that now I need to rebuilt all my old entries.. and unless I do it a few at a time it crashes but that's another problem..)

@OJWay:
I had this problem. MT4 is automatically converting the URL into a link so the tag is getting doubled up. Change the format to "none" before pasting the URL and it should work OK.

Leave a comment

Sign In

About This Entry

This page contains a single entry by Ole Wolf published on August 28, 2007 6:17 PM.

Previous entry: Cloning Allows Second Coming.

Next entry: Fake Submissions for Fake Businesses.

Find recent content on the main index or look in the archives to find all content.

Subscribe to Comments

Creative Commons License
This weblog is licensed under a Creative Commons License.