DirkPersky / typo3-dp_cookieconsent

TYPO3 Extension: Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)
GNU Affero General Public License v3.0
32 stars 27 forks source link

Add configuration option (TS/JS) to add new checkbox types #24

Closed mario-seidel closed 5 years ago

mario-seidel commented 5 years ago

Actually the types of checkboxes and cookies are defined fixed here: https://github.com/DirkPersky/typo3-dp_cookieconsent/blob/45893bb101790ae678f73c760367783c3e7a117e/Resources/Public/JavaScript/cookie.js#L21

If this is an config option in TS or even the JS config object, you have the possibility to add new types. All you have to do is customize the CookieSelection.html template by yourself.