Added bookmark this to blogger template

view a random?

To do this in blogger, I went to customise, Template, and edit html, I also clicked on the expand widget check box - as this is what the feedburner instructions directed me to do when adding the email me links.

This was more difficult than I expected, the blogger template is rather powerful… but I had to ensure that the posted code was XML valid… the first problem being the &pub part of the add this link….

The next problem was that I hadn’t understood how the data:post.url and other data components actually worked - I still don’t really… so I followed well proven development techniques, I looked at was already implemented and I copied it… now the book mark this button still opens in a new window, but it isn’t a javascript sized window… its just a normal window - and in my Firefox settings I have this opening in a new tab behind the scenes…

I change the code to look like this, taking a link example and making it load the URL that would have been generated previously using javascript:

<a expr:href=’”http://www.addthis.com/bookmark.php?wt=nwpub=alphafoobar&amp;url=”+ data:post.url + “&amp;amp;title=” + data:post.title’ target=’_blank’ title=’Bookmark using any bookmark manager!’><img alt=’Bookmark this post’ border=’0′ height=’16′ src=’http://s9.addthis.com/button1-bm.gif’ width=’125′/></a>

Which makes me think the template is preprocessed using XSL? would this be correct… or some other XML processor?

Anyhow, doing this means I don’t have to edit my posts post posting to get the correct URL, or double enter the title… So much easier.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • MisterWong
  • Reddit
  • Scoopit
  • StumbleUpon
  • Technorati
  • rss

Post a Comment

You must be logged in to post a comment.