Posted on Leave a comment

How to Make Permalinks Work

Earlier I wrote Trying to figure out how to make perma links work as a stream of conscious/troubleshooting note taking gibberish. Clear instructions follow:

The Blogger Knowledge Base notes “<a name=”<$BlogItemNumber$>”>&nbsp;</a> should go somewhere in your post body. If you include it in the itemtitles section, your post will only get numbered if you specify a title.)”

The blogger template has this code:

<BlogItemTitle><h2><$BlogItemTitle$><a name=”<$BlogItemNumber$>”>&nbsp;</a></h2></BlogItemTitle>

however, if your blogger post does not include a title, the anchor for the permalink will not get created. To fix this, change:

<BlogItemTitle><h2><$BlogItemTitle$><a name=”<$BlogItemNumber$>”>&nbsp;</a></h2></BlogItemTitle>

to

<a name=”<$BlogItemNumber$>”>&nbsp;</a><BlogItemTitle><h2><$BlogItemTitle$></h2></BlogItemTitle>

With that in place using the “#postnumber” in the url will take you to a specific post. You can confirm this by “view source” and searching for “<a name” You should have several that appear as <a name=”postnumber”> without the “#” mark.

To get the permalink url, right click on the date in the “posted by” and “copy shortcut”.

What’s a “perma link”? These are urls that can be used to direct someone to a specific posting in a blog rather than just sending them to a top of a page. Each post has a “posted by” byline and in that there is a link which shows something like “http://cursed-juggler.blogspot.com/2004_02_01_cursed-juggler_archive.html#107594955252071847” which would be the link to this post. As an example, here’s a link to my post about Eatting Spongebob Squarepants http://cursed-juggler.blogspot.com/2004_02_01_cursed-juggler_archive.html#107589435617551149

Hope this helps someone.

More info:

Plasticbag.org Perma link origins

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.