From e083a9dcd918a6b743d1ea09d531bf5672d11510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 31 May 2024 16:45:52 +0200 Subject: [PATCH] fix: properly limit/allow content elements per site --- .../ep_events/Configuration/TSconfig/Page/Main.tsconfig | 2 +- .../Configuration/TSconfig/Page/TCEFORM.tsconfig | 9 +++++++++ .../TSconfig/Page/Wizards/NewContentElement.tsconfig | 4 ++++ .../Configuration/TSconfig/Page/TCEFORM.tsconfig | 5 +++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Main.tsconfig b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Main.tsconfig index 91b03202..9554063b 100644 --- a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Main.tsconfig +++ b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Main.tsconfig @@ -1,5 +1,5 @@ @import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/SHARED.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/WebLayout/BackendLayouts.tsconfig' -@import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig' +@import 'EXT:ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/RTE.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig' diff --git a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig index 39b3accf..3ccb5922 100644 --- a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig +++ b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig @@ -1,5 +1,14 @@ TCEFORM { tt_content { + CType { + # Remove content elements added by EXT:ep_theme + removeItems := addToList(teaser, teaser_country, teaser_region, teaser_city, teaser_hotel, teaser_concept) + removeItems := addToList(teaser_product, teaser_booking_link, disturber, disrupter, deal_of_the_week) + removeItems := addToList(lineup, event_pricetable, nlform) + removeItems := addToList(gmap, contact, calendar, ytvideo, button) + removeItems := addToList(ep_container_quarters, ep_container_teasergroup) + } + # Disable image orientations imageorient.removeItems = 0,1,2,8,9,25,26 imageorient.disabled = 1 diff --git a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig index ebfef8b9..211f2d96 100644 --- a/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig +++ b/public/typo3conf/ext/ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig @@ -1,5 +1,9 @@ mod { wizards.newContentElement.wizardItems { + common.show := removeFromList(table,bullets,uploads) + special.show = div,shortcut,html + menu.show = + forms.show = epevents { header = EP Events elements { diff --git a/public/typo3conf/ext/ep_theme/Configuration/TSconfig/Page/TCEFORM.tsconfig b/public/typo3conf/ext/ep_theme/Configuration/TSconfig/Page/TCEFORM.tsconfig index 9535a6ce..6256d8dd 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TSconfig/Page/TCEFORM.tsconfig +++ b/public/typo3conf/ext/ep_theme/Configuration/TSconfig/Page/TCEFORM.tsconfig @@ -1,5 +1,10 @@ TCEFORM { tt_content { + CType { + # Remove content elements added by EXT:ep_events + removeItems := addToList(tile, statement, herounit, banner) + } + imageorient.removeItems := addToList(0,1,2,8,9,25,26) imageorient.disabled = 1 imagecols.disabled = 1