From 50cdb42066c09c515380e1565b0b35427325fb1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 23 Nov 2021 12:59:44 +0100 Subject: [PATCH] Toggle Cookiefirst inclusion via settings --- .../TypoScript/Page/Main.typoscript | 8 +++++-- .../TypoScript/Page/Main.typoscript | 24 ++++--------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/public/typo3conf/ext/ep_events/Configuration/TypoScript/Page/Main.typoscript b/public/typo3conf/ext/ep_events/Configuration/TypoScript/Page/Main.typoscript index 0fa41c7f..268d6cd8 100644 --- a/public/typo3conf/ext/ep_events/Configuration/TypoScript/Page/Main.typoscript +++ b/public/typo3conf/ext/ep_events/Configuration/TypoScript/Page/Main.typoscript @@ -73,9 +73,13 @@ page { } } + headerData.999 = TEXT - headerData.999.wrap = - headerData.999.value = {$plugin.tx_epevents.settings.cookieFirstKey} + headerData.999 { + wrap = + value = {$plugin.tx_epevents.settings.cookieFirstKey} + if.isTrue = {$plugin.tx_epevents.settings.cookieFirstKey} + } } [page["doktype"] == 101] diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript index a640c57a..40716447 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript @@ -134,23 +134,9 @@ page { } headerData.999 = TEXT - headerData.999.wrap = - headerData.999.value = {$plugin.tx_eptheme.settings.cookieFirstKey} - - headerData.9999 = TEXT - headerData.9999.value ( - - - - ) + headerData.999 { + wrap = + value = {$plugin.tx_eptheme.settings.cookieFirstKey} + if.isTrue = {$plugin.tx_eptheme.settings.cookieFirstKey} + } }