Showing posts with label tag. Show all posts
Showing posts with label tag. Show all posts

16 January 2007

technorati tag and blogger labels

Within Blogger, labels at the bottom of each post link to a selection of all your posts sharing just that label. But there's a simple hack you can do to make them technorati post tags, i.e. to make them to link to Technorati Tag pages.
Go to the 'Edit HTML' tab of you Layout settings and enable the 'Expand Widget Templates' tick. Then search for the string 'post-footer-line-2' in order to reach the place where your layout displays your labels. If you are acquainted with the HTML/XML mixed code of blogger template, you'd recognize the code for the anchor link. It is supposed to be of the form:
<a expr:href='data:label.url'><data:label.name/></a>
Now, all you have to do, is to replace that anchor link with what follows:
<a expr:href='"http://technorati.com/tag/"+data:label.name' rel='tag' target='blank'><data:label.name/></a>
Notice that there are nested quotes: the ones of the href value itself and, inside these, the ones of the string to be pre-poned to the data:label.name.
Notice also that you can still reach the selection of your posts sharing a particular label by enabling the labels-widget among the page elements of your layout.
Hope this can help someone, enjoy!
[›››]