Have your web pages shared with the world
The Composite.Community.AddThis package allows users to share the current web page with various online services such as FaceBook or Twitter.
It adds to the page one or more customizable buttons provided by AddThis, the world's largest content sharing platform.
How to implement Composite.Community.AddThis
- Edit a page.
- Add the
Composite.Community.AddThis function (
Insert >
Function) or insert the following code on the page:
<f:function name="Composite.Community.AddThis" xmlns:f="http://www.composite.net/ns/function/1.0"> <f:param name="Style" value="Informative" /> <f:param name="ProfileId" value="(if used, replace this with your AddThis profile ID)" /> </f:function>
- If needed, set these optional parameters:
- Style: One of the visual styles of the AddThis buttons. 'Informative' by default.
- ProfileId: The AddThis profile ID (see below).
Using your AddThis Profile ID
You can use the AddThis function out-of-the-box. However, if you want your personalized AddThis analytics data, you should:
- Register with AddThis at https://www.addthis.com/register.
- Get the profile ID from the code at http://www.addthis.com/get-addthis (search for the 'pubid' value, e.g. 'xa-4dbaa23f4bdb7818').
- Specify this ID in the ProfileId parameter of the Composite.Community.AddThis function.
Profiles allow publishers to organize and share AddThis analytics data with team members or clients.
Requirements
Composite C1 version 2.0 or later