If you have setup a sideblog/linkblog then you will notice that the rss it generates is rather annoying. If you look at the RSS through an aggregator such as Bloglines and you click on the title of the entry, it takes you to the entry permalink. This is fine with most blogs but in sideblogs its rather annoying. I would much prefer being taken to the page in question rather than the entry permalink. To understand what I mean look at MovableBLOG Asides rss file, you will see the link element links to the page he is talking about, click the title it will not take you to the entry permalink. This means that you will need to extract the uri specified in the href tags.

To accomplish this you will need:

  1. A sideblog setup where the link (a href tag) is in the entry body, and the description is in the extended entry
  2. Brad Choate’s Regex Plugin
  3. You to be using MT’s quickpost tool - if you do not use it, you must make sure all your hyperlinks are in the format xx

Add the following code to the tops of all your rss files (in the RSS 2.0 file you may need to put it underneath the xml tag)

s|(.*)|$1|g

Atom Index

Find in your template the following:

” />

and replace it with

” />

RSS 1.0 and 2.0 Index

Find in your template:

<$MTEntryPermalink encode_xml="1"$>

and replace it with

<$MTEntryBody regex="1" encode_xml="1" convert_breaks="0"$>

And there you have it, when you view your RSS file in a Aggregator (eg BlogLines) you will see that clicking the

If you’ve found this helpful, please support Movalog

This tutorial is licensed by Arvind Satyanarayan through a Creative Commons license - Attribution-NonCommercial-ShareAlike 2.0.

Arvind Satyanarayan