From e90782534f2908b3a1f5227bba35b02a1046070d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 5 May 2022 13:42:54 +0200 Subject: [PATCH] Adds textfield for included services --- .../Classes/Domain/Model/Product.php | 21 +++++++++++++++++++ .../tx_epproducts_domain_model_product.php | 13 +++++++++++- .../typo3conf/ext/ep_products/ext_tables.sql | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php index a6d0723e..b954e91f 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php @@ -145,6 +145,11 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements */ protected $additionalServices = ''; + /** + * @var string + */ + protected $includedServices; + /** * @var string */ @@ -646,6 +651,22 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements $this->additionalServices = $additionalServices; } + /** + * @return string + */ + public function getIncludedServices() + { + return $this->includedServices; + } + + /** + * @param string $includedServices + */ + public function setIncludedServices($includedServices) + { + $this->includedServices = $includedServices; + } + /** * @return string */ diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php index cd2b44b5..d9b2a7f9 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php @@ -27,7 +27,7 @@ return [ 'showitem' => '--palette--;;top, name_internal, --palette--;;name, --palette--;;header, --palette--;;destinations, --palette--;;misc, --palette--;Alternative;alternative, --div--;Texte, teaser, teaser_long, concept_description, board_description, additional_services, - programme_description, ski_pass_description, + included_services, programme_description, ski_pass_description, --div--;Verknüpfungen, --palette--;;records, hotels, facts, faqs, additional_regions, --div--;Bilder/Dateien, teaser_images, header_images, images, reseller_images, banner, video, --div--;Bewertung, --palette--;;rating, testimonials, @@ -341,6 +341,17 @@ return [ 'enableRichtext' => true, ], ], + 'included_services' => [ + 'exclude' => 0, + 'label' => 'Inklusivleistungen (Gruppen)', + 'config' => [ + 'type' => 'text', + 'cols' => 40, + 'rows' => 5, + 'eval' => 'trim', + 'enableRichtext' => true, + ], + ], 'programme_description' => [ 'exclude' => 0, 'label' => 'Programm', diff --git a/public/typo3conf/ext/ep_products/ext_tables.sql b/public/typo3conf/ext/ep_products/ext_tables.sql index 46d28275..170ea8bd 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -34,6 +34,7 @@ CREATE TABLE tx_epproducts_domain_model_product concept_description text NOT NULL, board_description text NOT NULL, additional_services text NOT NULL, + included_services text NOT NULL, programme_description text NOT NULL, ski_pass_description text NOT NULL, rating_average varchar(255) DEFAULT '' NOT NULL,