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!
[›››]

4 comments:

hronir said...

Obviously, there are (was!) better ways, out there.
For example, here you can find a way to put both blogger-label and technorati-tag links...

Edo said...

what's technorati?
what's forfora?

hronir said...

what's forfora?
Technorati is a blog-related search engine, with web-2.0 social-functionalities...
More on its site (let you google for it...)

Edo said...

what's forfora? era il famosissimo teaser della pubblicita' dello shampoo Clear (contro la forfora naturalemente), che evidentemente mi s'e' stampata a fuoco nei meandri del mio cerebro.