feat: page module previews for teasers, disrupter, disturber, map and lineup

The TYPO3 10 drawItem hooks become one preview renderer registered per
CType in TCA; it renders the old templates from a46918d with the same
variables (f:format.html is not allowed in the backend: f:sanitize.html).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
frommeandClaude Opus 5.5 committed 2026-10-24 12:56:22 +02:00
1 parent 44614a4a75
commit 0b17a24edd
13 files changed
+355

No files matched your search

@@ -0,0 +1,13 @@
<?php
use EP\EpTheme\Preview\ContentPreviewRenderer;
defined('TYPO3') or die();
// Page module previews (Templates/PreviewRenderer/<CType>.html); loads after tt_content_element_*.php
foreach (['teaser_country', 'teaser_region', 'teaser_city', 'teaser_hotel', 'teaser_concept', 'teaser_product',
'teaser_booking_link', 'gmap', 'disturber', 'disrupter', 'lineup'] as $cType) {
if (isset($GLOBALS['TCA']['tt_content']['types'][$cType])) {
$GLOBALS['TCA']['tt_content']['types'][$cType]['previewRenderer'] = ContentPreviewRenderer::class;
}
}