MovableType Permalink

I’ve noticed on a few blogs, using movabletype, that have added a “Permalink” link at the end of their entry to link to the actual entry itself. This comes in handy when you want to link to an entry. In the past when I’ve done this, I’ve had a little trouble finding out what the link to a particular entry is. So, I figured I’d spend a few minutes today and try and figure out how to create a permalink for each entry on the index page and the category pages. Well…turns out they were already there to begin with. Apparently the default Movabletype template uses the time of the entry as a link to the permanent entry. I decided this wasn’t as intuitive as I’d like (since I never found it before), so I modified the following in my index template and category archive template:

<div class=”posted”>Posted by <$MTEntryAuthor$> at <a href=”<$MTEntryPermalink$>”><$MTEntryDate format=”%X”$></a>

to be:

<div class=”posted”>Posted by <$MTEntryAuthor$> at <$MTEntryDate format=”%X”$>
<a href=”<$MTEntryPermalink$>”>Permalink</a>

As you can see, I now have a nice “Permalink” at the bottom of each entry. Go ahead, try it out!

Comments are closed.