Share buttons widget

0
Anybody already got the Share buttons widget working in Mx6? I tried to solve the deprecations but I am still stuck with a couple that goes beyond my javascript skills. Regards, Ronald [EDIT] The sollution from Pim I do not seem to get it to work. I get .js errors in my log. See the screenshot. Is the format string widget working in Mx6.10.4?    
asked
1 answers
2

Hi Ronald, I also gave up and fixed it with HTML for facebook, twitter, linkedin and email with format string widget:

<a href="#" onclick="window.open('https://twitter.com/intent/tweet?text=${text}&url=${url}&via=${twitteraccount}', '_system');"><i class="fa fa-twitter"></i></a>

 

<a href="#" onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&title=${text}&url=${url}&source=${socialshareurl}', '_system');"><i class="fa fa-linkedin"></i></a>

 

<a href="#" onclick="window.open('mailto:?subject=${text}&body=${url}', '_system');"><i class="fa fa-envelope"></i></a>

 

<a href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=${url}', '_system');"><i class="fa fa-facebook"></i></a>

 

cleaner and better CSS styling.

 

html render:

answered