2017 © Pedro Peláez
 

neos-plugin neos-shariff

Integrate shariff, social buttons with privacy

image

networkteam/neos-shariff

Integrate shariff, social buttons with privacy

  • Thursday, January 11, 2018
  • by chlu
  • Repository
  • 9 Watchers
  • 6 Stars
  • 1,210 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 14 Versions
  • 18 % Grown

The README.md

Networkteam.Neos.Shariff

Social plugins are on every page today, but if you have concerns about privacy of your visitors it is not that easy to integrate them. The german publisher Heise created a general solution that allows to show the counts for each share while preserving the privacy of website visitory. This is accomplished by using the server of the website as proxy for the visitors. http://ct.de/-2467514, (*1)

This plugin integrates Shariff into Neos with a few simple steps., (*2)

Installation

$ composer require networkteam/neos-shariff

Compatibility

See the following table for the correct plugin version to choose:, (*3)

Neos CMS Plugin version
>= 4.3 5.x
< 5.0 4.x
< 4.0 3.x
< 3.0 2.x
< 2.0 1.x

Configuration

Configure the list of services to show in a Settings.yaml (e.g. in your site package):, (*4)

Networkteam:
  Neos:
    Shariff:
      options:
        services:
          - WhatsApp
          - Twitter
          - Facebook
          - Pinterest
          - Mail

See Configuration/Settings.yaml for more information about possible options., (*5)

Usage

As a content element

This package contains a simple node type Networkteam.Neos.Shariff:Shariff that renders social share buttons via Shariff. Just add a new node of this type to a document in the Neos backend., (*6)

Usage via Fusion

In your prototype define a property which renders the social plugins like this:, (*7)

prototype(My.Awesome.Package:Post) {
    socialButtons = Networkteam.Neos.Shariff:Shariff
}

Then in the corresponding template render the path like this:, (*8)

{socialButtons -> f:format.raw()}

Configuration

Shariff is configured by data-attributes. A basic set of these attributes is already defined by package settings., (*9)

  • data-backend-url
  • data-services
  • data-theme
  • data-orientation
  • data-lang

You can override them in your settings.yaml., (*10)

Networkteam:
  Neos:
    Shariff:
      frontend:
        theme: standard
        orientation: horizontal
        language: en
      options:
        domain: ~
        cache:
          ttl: 3600
        services:
#          - Facebook
#          - Twitter
#          - LinkedIn
#          - Reddit
#          - StumbleUpon
#          - Flattr
#          - Pinterest
#          - Xing

If you want to extend the configuration just go like this:, (*11)

prototype(Networkteam.Neos.Shariff:Shariff) {
    attributes {
        // Put additional attributes here, see https://github.com/heiseonline/shariff#options-data-attributes
        // data-example = 'value'
    }
}

Using Pinterest

In order to use a "Pin it" button in shariff pinterest won't grab an image of your page automatically. You have to define one by using the "data-media-url" attribute. So just extend prototype(Networkteam.Neos.Shariff:Shariff) and use e.g. the twitterCardImage property of the current Document Node to serve a proper image., (*12)

Development

When you publish a new version, make sure to run npm run-script build. This will update the Shariff package and copy the assets into public folder. After build check in the modified files., (*13)

Acknowledgments

Development of the Neos integration sponsored by networkteam GmbH - Neos Agentur., (*14)

License

Licensed under GPLv2+, see LICENSE., (*15)

The Versions

11/01 2018

dev-master

9999999-dev

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

11/01 2018

2.x-dev

2.9999999.9999999.9999999-dev

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

02/02 2017

3.0.0

3.0.0.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

23/11 2016

2.0.1

2.0.1.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

13/07 2015

2.0.0

2.0.0.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

13/07 2015

2.0.0-rc2

2.0.0.0-RC2

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

10/07 2015

2.0.0-rc1

2.0.0.0-RC1

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

23/06 2015

1.x-dev

1.9999999.9999999.9999999-dev

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

02/02 2015

1.2.5

1.2.5.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

02/02 2015

1.2.4

1.2.4.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

22/01 2015

1.2.3

1.2.3.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

19/01 2015

1.2.2

1.2.2.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

16/01 2015

1.2.1

1.2.1.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder

16/01 2015

1.2.0

1.2.0.0

Integrate shariff, social buttons with privacy

  Sources   Download

GPL-2.0+

The Requires

 

by Soeren Rohweder