neosrulez/react-cookieoptin

Last activity 16 days ago
  • 209
composer require neosrulez/react-cookieoptin

A package which handles Cookie Opt-In for Neos CMS. Build with React.

1.0.4

A package which handles Cookie Opt-In for Neos CMS. Build with React.

Version
1.0.4
Type
neos-package
Release Date
01.09.2020 14:05:33
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
e428ce8b40bdee15c3a64ec7cf2957f641ab009f

Neos CMS Cookie Opt-In Plugin

A package to handle Cookie Opt-In for Neos CMS. Build with React.

Installation

The NeosRulez.React.CookieOptIn package is listed on packagist (https://packagist.org/packages/neosrulez/react-cookieoptin) - therefore you don't have to include the package in your "repositories" entry any more.

Just add the following line to your require section:

"neosrulez/react-cookieoptin": "*"

And the run this command to fetch the plugin:

composer update

Neos Fusion

Simply add the data attribute data-cookieoptin to your own tags. If scripts should not be executed, the attribute type="text/plain" must also be added. These attributes are removed by the user when defining the cookie.

prototype(Acme.Package:CustomScript) < prototype(Neos.Neos:ContentComponent) {
    renderer = afx`
        <script type="text/plain" data-cookieoptin="analysis">foo = 'bar';</script>
    `
}

Settings.yaml

You can expand and manage your own cookie groups and cookies (in different languages) in an .yml file:

NeosRulez:
  React:
    CookieOptIn:
      metadata: 'resource://NeosRulez.React.CookieOptIn/Private/Metadata/'

Author

The content of the readme is provided by Github
The same vendor provides 22 package(s).