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

  1. Install and enable the module.
  2. Place the share_light block (using the core block interface or using context).
  3. (optional) activate/deactivate channels in the admin section
  4. (optional) Add the share_light field to some of your content-types to make the buttons more customizable.

Shipped channels

  • Facebook
  • Twitter
  • Email
  • Pinterest

… other channels can be added with via the channel-plugin system.

How to add channels

  1. Implement hook_share_light_channels_info() to register your channel classes.
  2. 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

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon14 sites report using this module
  • Created by torotil on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases