Friday, February 11, 2005

Blogger tip - permalink to post within the archive page

This will be gibberish to anyone who's not a Blogger.com user. Please ignore.

I posted this over in Daniel Conover's comments, then realized it also belonged here.

So that your post's permalink doesn't change if you go back and retitle the post:

---------------
Added Feb. 12:
To try to clarify:
With Blogger (the blogging tool), when you publish a post, it's put up on the web on 2 weblog pages - a standalone page, which just contains that post and any comments on it, and a monthly (or weekly or daily) archive page that shows the post (but no comments) "in context" with all the other posts from that time period. By default, Blogger
a) makes the post's permalink point to the "standalone" page,
and
b) names that page, in part, from the post's title. So if you subsequently modify the post by changing its title, anyone trying to reach it via the old "permalink" (which includes the pagename) is out of luck.

What I'm showing here is how to change your weblog template so that your post's permalink points inside the "archive" page instead of pointing to the "standalone" page.

Previous "Blogger tips" posts for changing your template:
---------------

First save your template so you can restore it if this doesn't work, then in place of

<$BlogItemBody$>
<br><span class="byline">posted by <$BlogItemAuthorNickname$> at <a href="<$BlogItemPermalinkURL$>"><$BlogItemDateTime$></a>

try
<$BlogItemBody$>
<br><span class="byline">posted by <$BlogItemAuthorNickname$> at <$BlogItemDateTime$> [<a href="<$BlogItemArchiveFileName$>#<$BlogItemNumber$>" title="Permalink (within page)">Link</a>]

and, of course, preview and make sure it works before saving the change.

There is still be room for improvement; someone can still go astray by linking to the "standalone" (single-post-on-single-page) post (which, if you have comments enabled, will be the page that shows the comments); but it's less likely.

No comments:

Post a Comment

Welcome, and thanks for caring enough to donate your time and thoughts toward greater collective wisdom...

Terms of engagement:
* Please be civil.
* * * * Please do not post anonymously * * * (I'd remove this choice if I could, and I may remove your comment if you do) - instead, do this:
Click on the 'Name/URL' radiobutton, then enter your real name (if you're brave) or a pseudonym (if you're not). (You can leave the "URL" field blank.)
Or go ahead and click "Anonymous", but put your name in your comment.

* The Management reserves the right to delete comments (Moderation Certificate can be found here). You can always post it on a blog of your own.

If you run into technical difficulties, please a) accept my apologies, then b) email your comment to aherror2011 at gmail.com with "Comment for [name of this blog]" in the Subject line.

New policy re climate contrarianism comments as of 11/11/2009:
Comments questioning the climate science community's understanding of climate change (97% of active climatologists now believe that the earth is currently warming and that it's human-caused - link) will be deleted unless the commenter:
a) is local
b) uses his real name
c) provides link(s) to substantiate his claim(s)/inference(s)
d) is willing to collaborate on constructing an argument tree, to get us past the usual sterile point-counterpoint-countercounterpoint.
(For people who can't read the above, a summary:
1) Be civil;
2) Don't post w/o giving at least a pseudonym;
3) Don't espouse climate-denial crankery unless you're local and willing to stand behind it.)

Caveats:
1. Comments could be delayed: they are being moderated, and I'm sometimes away from the computer for a day or more.
2. : Perfectly legitimate comments are sometimes miscategorized (by the blogging platform) as spam, & not published. If this happens to yours, please notify me, else I might not notice for a day or two.