Jump to:

794 Posts in 409 Topics by 304 members


SilverStripe Forums » Widgets » How to add and addThis btn?

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 1209 Views
  • wilsonStaff
    Community Member
    142 Posts

    How to add and addThis btn? Link to this post

    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>
    <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..

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.