Implement teaser for booking links

This commit is contained in:
Björn Fromme
2019-10-11 22:08:31 +02:00
parent 11363b85bf
commit f241fcba9b
11 changed files with 85 additions and 12 deletions
@@ -49,8 +49,15 @@ mod {
description = Teaser für ein auswählbares Produkt
tt_content_defValues.CType = teaser_product
}
teaser_booking_link {
iconIdentifier = content-ep_theme-ce
title = Teaser Buchungslink
description = Teaser für ein auswählbares Produkt (Buchungslink)
tt_content_defValues.CType = teaser_booking_link
}
}
show := addToList(teaser, teaser_country, teaser_region, teaser_city, teaser_hotel, teaser_concept, teaser_product)
show := addToList(teaser, teaser_country, teaser_region, teaser_city, teaser_hotel, teaser_concept)
show := addToList(teaser_product, teaser_booking_link)
}
disturber {
header = Störer
@@ -82,6 +82,14 @@ TCEFORM {
}
}
layout.types.teaser_booking_link {
removeItems = 0,2
altLabels {
1 = einspaltig
3 = mehrspaltig/quer
}
}
layout.types.ytvideo {
removeItems = 2,3
altLabels {
@@ -89,6 +89,18 @@ call_user_func(function() {
'after'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Teaser Buchungslink',
'teaser_booking_link',
'content-image'
],
'teaser_concept',
'after'
);
$GLOBALS['TCA']['tt_content']['types']['teaser'] = [
'showitem' => '
--palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
@@ -229,4 +241,16 @@ call_user_func(function() {
',
];
$GLOBALS['TCA']['tt_content']['types']['teaser_booking_link'] = [
'showitem' => '
--palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
--palette--;Kontext, tx_eptheme_context_product,
--div--;' . $frontendLanguageFilePrefix . 'tabs.appearance,
layout;' . $frontendLanguageFilePrefix . 'layout_formlabel,
--div--;' . $frontendLanguageFilePrefix . 'tabs.access,
hidden;' . $frontendLanguageFilePrefix . 'field.default.hidden,
--div--;' . $frontendLanguageFilePrefix . 'tabs.extended
',
];
});
@@ -27,3 +27,5 @@ tt_content.teaser_concept =< tt_content.teaser_country
tt_content.teaser_concept.templateName = TeaserConcept
tt_content.teaser_product =< tt_content.teaser_country
tt_content.teaser_product.templateName = TeaserProduct
tt_content.teaser_booking_link =< tt_content.teaser_product
tt_content.teaser_booking_link.templateName = TeaserBookingLink