Cookiebanner

For the EU-Cookie law you have to install a cookiebanner.

Outdated!

TYPO3

Version 1 (Extension)

You can use my Extension its in TYPO3 TER and its called cookiebanner

The Documentation can be found here


Version 2 (Template)

TypoScript

page.headerData.20 = TEXT
page.headerData.20.value (
    #Insert CookieCode There
)

DemoCode

page.headerData.20 = TEXT
page.headerData.20.value (
    <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
    <script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
    <script>
        window.addEventListener("load", function(){
        window.cookieconsent.initialise({
        "palette": {
        "popup": {
        "background": "#780c0d",
        "text": "#ffffff"
        },
        "button": {
        "background": "#ffffff",
        "text": "#780c0d"
        }
        },
        "content": {
        "message": "Diese Webseite verwendet Cookies, um die Bedienfreundlichkeit zu erhöhen.",
        "dismiss": "OK",
        "link": "Mehr erfahren",
        "href": "/impressum/"
        }
        })});
    </script>
)

StaticCode

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
    window.addEventListener("load", function(){
    window.cookieconsent.initialise({
    "palette": {
    "popup": {
    "background": "#000"
    },
    "button": {
    "background": "#f1d600"
    }
    }
    })});
</script>

Last updated

Copyright 2024 - jseidl.at Julian Seidl