From e2c241d8ef5ac86a102c1b100ee4a69b9633f2d1 Mon Sep 17 00:00:00 2001 From: David Mellen Date: Wed, 31 Jan 2024 09:49:14 +0100 Subject: [PATCH] feat: move footer to initialData REHLTYEXT-81 --- .../FooterConfiguration.typoscript | 27 ------------------- .../InitialDataConfiguration.typoscript | 11 ++++++++ .../ContentElement/FooterContent.typoscript | 16 +++++------ Configuration/TypoScript/constants.typoscript | 3 --- 4 files changed, 17 insertions(+), 40 deletions(-) delete mode 100644 Configuration/TypoScript/Configuration/FooterConfiguration.typoscript diff --git a/Configuration/TypoScript/Configuration/FooterConfiguration.typoscript b/Configuration/TypoScript/Configuration/FooterConfiguration.typoscript deleted file mode 100644 index a34abfb..0000000 --- a/Configuration/TypoScript/Configuration/FooterConfiguration.typoscript +++ /dev/null @@ -1,27 +0,0 @@ -footer = PAGE -footer { - typeNum = {$plugin.tx_headless.footer.typeNum} - config { - no_cache = 0 - sendCacheHeaders = 1 - debug = 0 - admPanel = 0 - disableAllHeaderCode = 1 - additionalHeaders.10 { - header = Content-Type: application/json; charset=utf-8 - replace = 1 - } - } - - 10 = CONTENT - 10 { - table = tt_content - select { - orderBy = sorting - where = {#colPos} = 1687238527 - max = 1 - } - slide = -1 - stdWrap.ifEmpty.cObject = JSON - } -} diff --git a/Configuration/TypoScript/Configuration/InitialDataConfiguration.typoscript b/Configuration/TypoScript/Configuration/InitialDataConfiguration.typoscript index 5a7b172..68bc7a0 100644 --- a/Configuration/TypoScript/Configuration/InitialDataConfiguration.typoscript +++ b/Configuration/TypoScript/Configuration/InitialDataConfiguration.typoscript @@ -16,6 +16,17 @@ initialData { } } } + footer = CONTENT + footer { + table = tt_content + select { + orderBy = sorting + where = {#colPos} = 1687238527 + max = 1 + } + slide = -1 + stdWrap.ifEmpty.cObject = JSON + } } } } diff --git a/Configuration/TypoScript/ContentElement/FooterContent.typoscript b/Configuration/TypoScript/ContentElement/FooterContent.typoscript index 50db6ea..ec99ef8 100644 --- a/Configuration/TypoScript/ContentElement/FooterContent.typoscript +++ b/Configuration/TypoScript/ContentElement/FooterContent.typoscript @@ -1,14 +1,10 @@ -tt_content.footer_content =< lib.contentElement +tt_content.footer_content = JSON tt_content.footer_content { - fields { - content { - dataProcessing { - 10 = Remind\Headless\DataProcessing\FlexFormProcessor - 10 { - fieldName = pi_flexform - as = flexform - } - } + dataProcessing { + 10 = Remind\Headless\DataProcessing\FlexFormProcessor + 10 { + fieldName = pi_flexform + as = flexform } } } diff --git a/Configuration/TypoScript/constants.typoscript b/Configuration/TypoScript/constants.typoscript index 72d10bd..790ed69 100644 --- a/Configuration/TypoScript/constants.typoscript +++ b/Configuration/TypoScript/constants.typoscript @@ -5,7 +5,4 @@ plugin.tx_headless { pid = 0 pid := getEnv(LOGIN_PID) } - footer { - typeNum = 836 - } }