AddThis Extension
Vendor
MindTouch
Type Script
Categories Widget
Requires MindTouch Core 1.8.3 or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/addthis.xml

 

Install Script
To add  this script to your site, enter the address of your MindTouch installation (ex: http://www.mindtouch.com) and click the Add Script button.  This will open your control panel and prepopulate the necessary values.  You will still need to manually add configuration settings if required.  Note that no changes are made to your site until you confirm the action in your control panel.
Your site address:     


Table of Contents

Description

This extension allows you to add AddThis social bookmarking widgets to your wiki.

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Configuration

The following configuration settings are required to run this script (unless shown as optional).

NameTypeDescription
publisherstrAddThis account ID. Go to http://www.addthis.com to sign up.


Functions

addthis.bookmark() : xml

Embed a social bookmarking button.


Script Source

<extension>
  <title>AddThis Extension</title>
  <label>AddThis</label>
  <copyright>Copyright (c) 2006-2009 MindTouch Inc.</copyright>
  <description>This extension allows you to add AddThis social bookmarking widgets to your wiki.</description>
  <uri.help>http://developer.mindtouch.com/App_Catalog/AddThis</uri.help>
  <uri.logo>http://scripts.mindtouch.com/logos/addthis-logo.png</uri.logo>
  <namespace>addthis</namespace>

  <config>
    <param name="publisher" type="str">AddThis account ID.  Go to http://www.addthis.com to sign up.</param>
  </config>
  
  <function>
    <name>bookmark</name>
    <description>Embed a social bookmarking button.</description>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script type="text/javascript">
            addthis_url    = location.href;
            addthis_title  = document.title;
            addthis_pub    = <eval:js>config['publisher']</eval:js>;
          </script>
          <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
        </body>
      </html>
    </return>
  </function>
</extension>





Samples

  Output

To embed the Social Bookmarking buttons:

{{ addthis.bookmark() }} 
./social book2.png

 

Tag page

Files 1

FileSizeDateAttached by 
 social book2.png
No description
1240 bytes21:39, 7 Jan 2008coreygActions
You must login to post a comment.