This module defines a block with various share links - javascript free and stylable. It provides a new fieldtype, so you just need to add a new field to where ever you want your sharebox. Out of the box it allows to share a configurable url via facebook, twitter and email.
Features
- JS free and stylable: No privacy issues; Share buttons that fit your design perfectly.
- Pluggable: Add additional channels (facebook, twitter, email, …) as needed.
- (optional) Google-Analytics integration: Send tracking events to google-analytics whenever a share-button is clicked (needs the google_analytics module).
Usage
- Install and enable the module.
- Place the share_light block (using the core block interface or using context).
- (optional) activate/deactivate channels in the admin section
- (optional) Add the share_light field to some of your content-types to make the buttons more customizable.
Shipped channels
… other channels can be added with via the channel-plugin system.
How to add channels
- Implement hook_share_light_channels_info() to register your channel classes.
- Create channel classes implementing \Drupal\share_light\ChannelInterface. You can use \Drupal\share_light\ChannelBase for a convenient starting point and take a look at the existing channels in the src/-subfolder of the module.
Dependencies
- PSR-0: For the channel-plugin-autoloading
- Little helpers: To have a nice object oriented field CRUD-api.
- Media: The media form widget.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.14 sites report using this module
- Created by torotil on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.


