%SOCIALSHARE
macro. Additionally this plugin supports a
way to present a modal dialog with all social buttons on it.
%SOCIALSHARE{width="42em"}%You get: You type:
%SOCIALSHARE{type="icons" tooltips="on"}%You get: You type:
%BUTTON{"%MAKETEXT{"Share"}%" icon="fa-share-alt" class="socialShareButton"}%You get: Share ... and - when SocialSharePlugin is installed - on click it will open a dialog (using System.JQueryBlockUI) displaying a list of social share buttons. See the below screenshot.
%SOCIALSHARE{"<services>" ...}%
In most cases it is sufficient to just list the services you want a social button for. The actual implementation is then predefined in the socialshare.tmpl
template.
However, you may still want to take over control and create the button by yourself. This will require detailed knowledge about the way social networks construct share links.
Parameter | Description | Default |
---|---|---|
"..." , services |
a list comma separated of services to render buttons for (see the list of IDs above) | all of them, or a subset as configured in $Foswiki::cfg{SocialSharePlugin}{Services} |
type |
||
tooltips |
boolean flag to switch on/off jQuery-ui tooltips on the buttons; if left off then the browser's native tooltip will still be used |
off |
url |
||
tags |
||
title , topictitle |
||
text |
||
media |
||
topic |
||
web |
||
include |
||
exclude |
||
format |
||
header |
||
footer |
||
separator |
social
ID to the SKIN
setting, for example like this:
* Set SKIN = social, patternYou might have other extra skin overlays in place already (such as
natedit
, metacomment
, topicinteraction
, and/or solr
. In that case just prepend social
to the SKIN
setting to mix in the functionality.
For NatSkin no extra provisions are required. The "Share" feature is already integrated into the "More" menu.
cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Name | Version | Description |
---|---|---|
Foswiki::Plugins::BrowserDetectPlugin | >=2.00 | Optional |
Foswiki::Plugins::RenderPlugin | >=4.00 | Required |
14 Feb 2019 | disabled google+, enabled whatsapp, renamed css and js files not to be blocked by fanboy |
19 Jan 2017 | initial public release |
Author | Michael Daum |
Version | 1.10 |
Release | 14 Feb 2019 |
Description | Social Share Buttons |
Copyright | © 2015-2019 Michael Daum http://michaeldaumconsulting.com |
License | GPL (Gnu General Public License) |
Home | Foswiki:Extensions/SocialSharePlugin |
Support | Foswiki:Support/SocialSharePlugin |
Repository | https://github.com/foswiki/SocialSharePlugin |
ExtensionClassification | User interactivity |
ExtensionType | PluginPackage |
Compatibility | |
IncompatibleWith | |
ImageUrl | |
DemoUrl | http:// |
SupportUrl | SocialSharePlugin |
ModificationPolicy | CoordinateWithAuthor |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
md5 | SocialSharePlugin.md5 | manage | 174 bytes | 14 Feb 2019 - 12:38 | MichaelDaum | |
sha1 | SocialSharePlugin.sha1 | manage | 198 bytes | 14 Feb 2019 - 12:38 | MichaelDaum | |
tgz | SocialSharePlugin.tgz | manage | 172 K | 14 Feb 2019 - 12:38 | MichaelDaum | |
zip | SocialSharePlugin.zip | manage | 178 K | 14 Feb 2019 - 12:38 | MichaelDaum | |
EXT | SocialSharePlugin_installer | manage | 5 K | 14 Feb 2019 - 12:38 | MichaelDaum | |
png | SocialShareSnapshot1.png | manage | 22 K | 14 Feb 2019 - 12:37 | MichaelDaum | |
png | SocialShareSnapshot2.png | manage | 8 K | 14 Feb 2019 - 12:37 | MichaelDaum | |
png | SocialShareSnapshot3.png | manage | 121 K | 14 Feb 2019 - 12:37 | MichaelDaum |