View previous topic :: View next topic |
Author |
Message |
bkuerbis
Joined: 30 Oct 2008 Posts: 2
|
Posted: Tue Apr 07, 2009 8:56 am Post subject: Integrate ShareThis social bookmarking |
|
|
I'm implementing ShareThis, a social bookmarking tool, within my blog (http://blog.internetgovernance.org/). It was easy enough to edit the Article template and get it working correctly, but I'm having some issues getting the Category template working correctly.
For the Main page, I have this in the head section:
Code: | <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=ff7d9cb3-f25f-4888-bef3-e786c47f2fc9&type=website&post_services=facebook%2Cslashdot%2Cdigg%2Cdelicious%2Ctwitter%2Corkut%2Cstumbleupon%2Creddit%2Ctechnorati%2Cmixx%2Cblogger%2Ctypepad%2Cwordpress%2Cgoogle_bmarks%2Cwindows_live%2Cmyspace%2Cfark%2Cbus_exchange%2Cpropeller%2Cnewsvine%2Clinkedin"></script> |
and this in the Category template:
Code: | <script>
SHARETHIS.addEntry({
title:'{{title}}',
summary:'{{excerpt}}',
url:'{{permalink_url}}',
icon: 'http://path.to/icon'
}, {button:true} );
</script> |
It's generating the correct html, but I only see the "ShareThis" button and link under one Article when viewing in browser.
Any ideas what's wrong?
Thx |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Sat Apr 11, 2009 1:15 pm Post subject: Re: Integrate ShareThis social bookmarking |
|
|
Looks on your blog like you figured this out? |
|
Back to top |
|
|
bkuerbis
Joined: 30 Oct 2008 Posts: 2
|
Posted: Sat Apr 11, 2009 2:29 pm Post subject: |
|
|
Yep. The links in the article summary were tripping up the script. Just converted (excerpt) to a string and it now works fine. Here's the code:
Code: | <script>
SHARETHIS.addEntry({
title:'{{title}}',
summary: '{{String(excerpt)}}',
url:'{{permalink_url}}',
icon: 'http://path.to/icon'
}, {button:true} );
</script> |
|
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|