ntriga/pimcore-ntriga-cookies

Cookie banner for ntriga projects

11.0.8 2025-01-21 13:04 UTC

README

Package to handle cookies for Ntriga projects

Dependencies

Release Supported Pimcore Versions Supported Symfony Versions Branch
10.x 10.0 5.2 10.x
11.x 11.0 6.2 main

Installation

You can install the package via composer:

composer require ntriga/pimcore-ntriga-cookies

Add Bundle to bundles.php:

return [
    Ntriga\PimcoreCookies\PimcoreNtrigaCookiesBundle::class => ['all' => true],
];

Usage

Add include before the closing body tag in your layout template:

{% include '@PimcoreNtrigaCookies/cookies.html.twig' %}

When we don't want to set Analytical Cookies, we can pass a parameter

{% include '@PimcoreNtrigaCookies/cookies.html.twig' with {'AnalyticalCookies': 'false'} %}

Import the translations. You can find the csv here

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

GNU General Public License version 3 (GPLv3). Please see License File for more information.