Share light
Categories
Component ID
2240039
Component name
Share light
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
2999
Component created
Component changed
Component body
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 Drupalshare_lightChannelInterface. You can use Drupalshare_lightChannelBase 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.