Advanced AddThis Settings

Return to previous page

  • 4/7/2015
  • 883 Views

Comments

883 Views

Advanced AddThis Settings

Last updated 6 years ago

Comments

Common

(Enter the content of this article below)

Advanced

 
AddThis offers free social media and sharing tools via its JavaScript API. However, some of the advanced features use a format that conflicts with ASP.NET.

Any attribute in the format source:object:attribute = value such as g:plusone:size=small will result in a "String X contains too many device filters" error.

For these features, a .Net function is required. For example, working with the Google Plusone button:


< script runat="server">
Protected Sub Page_Load()
End Sub
Protected Function GetPlusoneCode() As String
Return String.Format("{0}=""{1}""", "g:plusone:size", "small")
End Function
script >

<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_google_plusone" <%= GetPlusoneCode() %>>a>
div>


script tag malformated for security
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out