Add preview renderers for custom content elements

This commit is contained in:
Björn Fromme
2021-09-27 18:26:56 +02:00
parent beb9fbae04
commit 0262738c91
26 changed files with 596 additions and 141 deletions
@@ -14,8 +14,28 @@ $GLOBALS['TYPO3_CONF_VARS']['LOG']['EP']['EpTheme']['Service']['BookingApiServic
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['ep_theme'] =
\EP\EpTheme\Hook\Tcemain::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['ep_theme'] =
\EP\EpTheme\Hook\PageLayoutView::class;
$layout = 'cms/layout/class.tx_cms_layout.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_country'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserCountryPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_region'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserRegionPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_city'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserCityPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_hotel'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserHotelPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_concept'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserConceptPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['teaser_product'] =
\EP\EpTheme\Hooks\PageLayoutView\TeaserProductPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['gmap'] =
\EP\EpTheme\Hooks\PageLayoutView\GmapPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['disturber'] =
\EP\EpTheme\Hooks\PageLayoutView\DisturberPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['disrupter'] =
\EP\EpTheme\Hooks\PageLayoutView\DisrupterPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['lineup'] =
\EP\EpTheme\Hooks\PageLayoutView\LineupPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] = 'tx_eptheme_slides';