Improved Permalinks

by john on October 21, 2003

I had the need this morning to link to an individual paragraph within an article. Occasionally via my series of Jabberings articles I will include links or commentary on numerous topics. Today I wanted to refer to one of those items but of course the permalink only points to the entire article, which wasn’t granular enough for my tastes.

Since I use the Textile text formatting the answer was very simple – just added id tags to the paragraph I need to link to. So to jump right to the paragraph about CRM you can go to and to go to the tidbit on juggling I can refer you to

This is very easy with Textile. Normally a paragraph would begin something like

bq. This is a paragraph about CRM.

To ad an id it is as simple as

bq. p(#crm). This is a paragraph about CRM.

Simple. And if for some reason I wanted to style those paragraphs I can add that id to my stylesheet.

I probably won’t get in the habit of giving an id to a paragraph unless I later link to it, and I doubt very much I’ll add in any way a permalink indicator to a paragraph that does have an id. At least I don’t think I will. Come to think of it that might be a good use of styles, I’ll have to think about it for awhile.

{ 1 comment }

Computer Toaster November 3, 2003 at 3:23 pm

Permanent links within weblog entries

I’ve posted weblog entries of as much as three thousand words. Often I’ve wanted to reference a particular point within the entry. Working on this had been in the back of my mind work weeks. Here’s one fellow’s easy solution: I …

Previous post:

Next post: