Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Widgets /

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to add and addThis btn?


Reply


1279 Views

Avatar
wilsonStaff

Community Member, 142 Posts

8 May 2010 at 1:10pm

Edited: 08/05/2010 1:32pm

Hi, i am pretty new to Silverstripe and i have still to learn - i just bought the big book about SS. Will read that over the week-end.

But for now, i have to add an addThis button. I tried to add this code using the CMS management panel.

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4be4b59451791d7e" class="addthis_button_compact" ><img src="http://s7.addthis.com/static/btn/v2/sm-share-fr.gif" width="83" height="16" border="0" alt="Share" /></a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4be4b59451791d7e"></script>
<!-- AddThis Button END -->

SS refuse to add the JS line (beginning with <script type="text/javascript) and obviously its not working. I tried the exact same code into a normal HTML page and it works.

I tried accessing the headers of the HTML page to add the code with Dreamweaver, only to discover that THERE IS NO HTML PAGES!!!!

- - -

So how do i add that button?

Thanks for helping a newbie..