From version < 10.1 >
edited by Paul Panțiru
on 2017/03/16 08:47
To version < 11.1 >
edited by Paul Panțiru
on 2017/03/16 08:47
< >
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -17,7 +17,7 @@
17 17  {{/code}}
18 18  
19 19  parameters you can use:
20 -{{code}}media{{/code}} - you can specify which social network you want to share on ex: {{code}}media="facebook, googleplus"{{/code}} {{code}}all{{/code}} being the default.
20 +{{code}}media{{/code}} - you can specify which social network you want to share on ex: {{code}}media="facebook, googleplus"{{/code}}, {{code}}all{{/code}} being the default.
21 21  {{code}}twitterText{{/code}} - text that will be inserted automatically in the body of the tweet preceding the url you are sharing (can be edited at the moment of sharing)
22 22  {{code}}hashtags{{/code}} - the hashtags that will be inserted automatically in the body of the tweet after the url you are sharing (can be edited at the moment of sharing)
23 23  {{code}}pinterestMedia{{/code}} - url of the image you want to be used when sharing with pinterest
cogAdds a few common social media share buttons
TypeXAR
CategoryMacro
Developed by

Paul Panțiru

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

A macro that adds some social media share buttons: 

 Soclial Network   ID
Email      email 
Facebook   facebook
Google+    googleplus
LinkedIn   linkedin
Pinteres   pinterest
Twitter    twitter
Print      print

Usage: 

{{shareon media='all' twitterText='Check out' hashtags='awesome' pinterestMedia="$!{myImage}" mailContent="I thought you might be interested in:"/}}

parameters you can use:
media - you can specify which social network you want to share on ex: media="facebook, googleplus" all being the default.
twitterText - text that will be inserted automatically in the body of the tweet preceding the url you are sharing (can be edited at the moment of sharing)
hashtags - the hashtags that will be inserted automatically in the body of the tweet after the url you are sharing (can be edited at the moment of sharing)
pinterestMedia - url of the image you want to be used when sharing with pinterest
mailContent - text in the body of the email that will be inserted automatically preceding the url you are sharing

parameters you can use:
media - you can specify which social network you want to share on ex: media="facebook, googleplus", all being the default.
twitterText - text that will be inserted automatically in the body of the tweet preceding the url you are sharing (can be edited at the moment of sharing)
hashtags - the hashtags that will be inserted automatically in the body of the tweet after the url you are sharing (can be edited at the moment of sharing)
pinterestMedia - url of the image you want to be used when sharing with pinterest
mailContent - text in the body of the email that will be inserted automatically preceding the url you are sharing

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v1.0

First version

Get Connected