Provides a sharing component for use with SilverWare, allowing pages to be shared via a series of sharing buttons for social media services.
Installation is via Composer:
$ composer require silverware/social
As with all SilverStripe modules, configuration is via YAML. Page settings for sharing are applied
using the included PageExtension
class, allowing sharing to be disabled for certain pages.
This module provides a SharingComponent
for which can be added to a SilverWare template
or layout using the CMS. A SharingComponent
renders a series of social media sharing buttons for
the current page, allowing the user to easily share the page with others.
Included with the repository is SharingButton
, which forms a base class from which to extend sharing button
implementations, and EmailSharingButton
which renders a button for sharing the current page via
email.
Buttons can be added and removed using the Buttons tab in the SharingComponent
CMS interface.
After installation, this module adds a "Sharing" section to the Settings tab for pages, with a "Sharing disabled" checkbox. Simply check this box for a particular page, and the sharing component will not be shown.
Please use the GitHub issue tracker for bug reports and feature requests.
Your contributions are gladly welcomed to help make this project better. Please see contributing for more information.
Colin Tucker | Praxis Interactive |
BSD-3-Clause © Praxis Interactive