From 37647a00297e327b7d56df76efab50269fba5591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 13 Feb 2020 08:15:53 +0100 Subject: [PATCH 1/2] Add backend preview for disrupter ce --- .../typo3conf/ext/ep_theme/Classes/Hook/PageLayoutView.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/typo3conf/ext/ep_theme/Classes/Hook/PageLayoutView.php b/public/typo3conf/ext/ep_theme/Classes/Hook/PageLayoutView.php index 91327c7f..bc3cb088 100644 --- a/public/typo3conf/ext/ep_theme/Classes/Hook/PageLayoutView.php +++ b/public/typo3conf/ext/ep_theme/Classes/Hook/PageLayoutView.php @@ -121,6 +121,11 @@ class PageLayoutView implements PageLayoutViewDrawItemHookInterface } $itemContent = 'Störer ' . $size . ''; break; + case 'disrupter': + $drawItem = false; + $disrupter = BackendUtility::getRecord('tx_eptheme_domain_model_disrupter', $row['tx_eptheme_disrupter']); + $itemContent = 'Störer
' . $disrupter['headline']; + break; case 'lineup': $drawItem = false; $itemContent = 'Lineup
' . $row['tx_eptheme_lineup'] . ' Einträge'; From a53a696d9902729256f2c745fab5f401e7faedac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 13 Feb 2020 08:16:08 +0100 Subject: [PATCH 2/2] Disable layout select field for disrupter ce --- .../typo3conf/ext/ep_theme/Configuration/PageTS/TCEFORM.tsconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/public/typo3conf/ext/ep_theme/Configuration/PageTS/TCEFORM.tsconfig b/public/typo3conf/ext/ep_theme/Configuration/PageTS/TCEFORM.tsconfig index cc8ceed2..e225cce7 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/PageTS/TCEFORM.tsconfig +++ b/public/typo3conf/ext/ep_theme/Configuration/PageTS/TCEFORM.tsconfig @@ -24,6 +24,7 @@ TCEFORM { layout.types.uploads.disabled = 1 layout.types.mailform.disabled = 1 layout.types.login.disabled = 1 + layout.types.disrupter.disabled = 1 header_layout { altLabels {