Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 799 Bytes

File metadata and controls

18 lines (13 loc) · 799 Bytes

OC CookieConsent

TODO desc

Requires

  • PHP version 8.0 or higher

Instructions

Instal the plugin

php artisan plugin:install RegularJogger.CookieConsent --from=git@github.com:regularjogger/cookieconsent-plugin.git

Add the cookieBar componennt to your layout(s)

{% component 'cookieBar' %} is made available to you to do that. Feel free to place it anywhere in your markup as it doesn't output anything by itself. Just make sure it's included before {% styles %} and {% scripts %} placeholders as it populates these.

Check your locale settings for both the app and your sites

TODO.

How to open the preferences modal anywhere (e.g., Privacy Policy page) using data-cc attribute

<button type="button" data-cc="show-preferencesModal">Manage cookie preferences</button>