From adf43d307f703b1cb29cea566defdbfc36acd978 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= <lukaszuznanski94@gmail.com>
Date: Tue, 14 Feb 2023 12:14:29 +0100
Subject: [PATCH] Bring back changes to typsocript (#549)

---
 .../ContentElementWithHeader.typoscript       | 52 +------------------
 1 file changed, 1 insertion(+), 51 deletions(-)

diff --git a/Configuration/TypoScript/ContentElement/ContentElementWithHeader.typoscript b/Configuration/TypoScript/ContentElement/ContentElementWithHeader.typoscript
index 59762a5f..ccbb58ff 100755
--- a/Configuration/TypoScript/ContentElement/ContentElementWithHeader.typoscript
+++ b/Configuration/TypoScript/ContentElement/ContentElementWithHeader.typoscript
@@ -1,56 +1,6 @@
-lib.contentElementWithHeader = JSON
+lib.contentElementWithHeader =< lib.contentElement
 lib.contentElementWithHeader {
     fields {
-        id = INT
-        id {
-            field = uid
-        }
-        type = TEXT
-        type {
-            field = CType
-        }
-        colPos = INT
-        colPos {
-            field = colPos
-        }
-        categories = COA
-        categories {
-            10 = CONTENT
-            10 {
-                table = sys_category
-                select {
-                    pidInList = root
-                    selectFields = sys_category.title
-                    join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid
-                    where {
-                        field = uid
-                        wrap = AND sys_category_record_mm.tablenames = 'tt_content' AND sys_category_record_mm.uid_foreign=|
-                    }
-                }
-                renderObj = TEXT
-                renderObj {
-                    field = title
-                    wrap = |###BREAK###
-                }
-            }
-            stdWrap.split {
-                token = ###BREAK###
-                cObjNum = 1 |*|2|*| 3
-                1 {
-                    current = 1
-                    stdWrap.wrap = |
-                }
-                2 {
-                    current = 1
-                    stdWrap.wrap = ,|
-                }
-                3 {
-                    current = 1
-                    stdWrap.wrap = |
-                }
-            }
-        }
-        appearance =< lib.appearance
         content {
             fields {
                 header = TEXT