I’m using AddThis to share entries on my site. It works fine for the most part, however if I want to use their Twitter template to customize what shows up in the tweets I’m having issues.
It says to use the following code:
[script]
var addthis_share = {
templates: {
twitter : "{{title}} {{url}} from @uscwmMF"
}
}
[script]
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"
addthis:url="{url_title_path="issue/article"}"
addthis:title="{title}"
addthis:description="{mf-sharing-text}">
<a class="first addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="last addthis_button_compact"></a>
</div>
<!-- AddThis Button END -->The {{url}} and {{title}} are supposed to be filled with the values I specify in addthis:url and addthis:title. However What I get is:
} from @uscwmM
It seems that EE is rendering the {{url}} and {{title}} parts of the script. How do I get EE to leave them alone and render them as is so the script can do its thing and fill them with the proper values? The support guy at Addthis suggest escaping the {{ characters, but what I tried didn't work.
I've looked around and found this thread that seems to be related to the same issue. I’ tried the config file modification. I’m using 2.2.1 20110630(do need to update, but can’t right now).