Hi,
I have multiple twitter buttons with custom images on a page, and I need two different templates for each section of the page. One is a footer share bar that is on every page, and its template looks like "{{title}}: {{url}} #hash1 #hash2. Then I have a section with multiple twitter buttons that need a different template : "{{title}}: {{url}} #hash3 #hash4 #hash5" . I have not yet found a way to do this.
I looked into using addthis sharing endpoints, as I am trying to do the same thing as this post:
http://support.addthis.com/customer/portal/questions/144664-trouble-with-addthis-sharing-endpoints-twitter
Is there any way to do this currently with addthis?
There are a set of repeated addthis toolboxes in the main section of the page that need one template, while the footer toolbox needs a second template. If there is a way to create a custom attribute for addthis that can hold the hashtags, that would work as well.
Here is what the footer share bar looks like:
<div class="social_icons addthis_toolbox" addthis:title="some title" addthis:url="www.example.com">
<a href="http://www.addthis.com/bookmark.php" class="addthis_button_facebook">
<div class="fb_bottom"></div>
</a>
<a href="http://www.addthis.com/bookmark.php" class="addthis_button_twitter">
<div class="twitter_bottom"></div>
</a>
<a href="http://www.addthis.com/bookmark.php" class="addthis_button_email">
<div class="email_bottom"></div>
</a>
</div>
<script type="text/javascript">
var addthis_config =
{
pubid: "some_id",
data_track_clickback: false
};
var addthis_share =
{
templates: {twitter:'{{title}}: {{url}} #hash1 #hash2'},
email_vars: {subject: "<?= $email_subj ?>", body: "<?= $email_body ?>", url: "<?= $email_url ?>"},
email_template: "some_template"
};
</script>
Thanks,
Chris