diff --git a/public/typo3conf/ext/ep_theme/Classes/Hooks/PageLayoutView/TeaserBookingLinkPreviewRenderer.php b/public/typo3conf/ext/ep_theme/Classes/Hooks/PageLayoutView/TeaserBookingLinkPreviewRenderer.php new file mode 100644 index 00000000..b89fe57b --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Classes/Hooks/PageLayoutView/TeaserBookingLinkPreviewRenderer.php @@ -0,0 +1,21 @@ +data['tx_eptheme_context_product']; + $images = $this->getImages($productUid, 'tx_epproducts_domain_model_product', 'teaser_images'); + $product = BackendUtility::getRecord('tx_epproducts_domain_model_product', $productUid); + return [ + 'images' => $images, + 'product' => $product, + ]; + } +} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/PreviewRenderer/TeaserBookingLink.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/PreviewRenderer/TeaserBookingLink.html new file mode 100644 index 00000000..e12ce445 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/PreviewRenderer/TeaserBookingLink.html @@ -0,0 +1,23 @@ +{namespace be=TYPO3\CMS\Backend\ViewHelpers} +
+
+

+ Teaser Buchungslink +

+

+ + + + + + + + +

+ + {product.name} + +
+ {product.teaser -> f:format.html()} +
+
diff --git a/public/typo3conf/ext/ep_theme/ext_localconf.php b/public/typo3conf/ext/ep_theme/ext_localconf.php index df8e0b05..e5f5b557 100644 --- a/public/typo3conf/ext/ep_theme/ext_localconf.php +++ b/public/typo3conf/ext/ep_theme/ext_localconf.php @@ -28,6 +28,8 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['tease \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']['teaser_booking_link'] = + \EP\EpTheme\Hooks\PageLayoutView\TeaserBookingLinkPreviewRenderer::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'] =