Adds textfield for included services

This commit is contained in:
Björn Fromme
2022-05-05 13:42:54 +02:00
parent b8e1094741
commit e90782534f
3 changed files with 34 additions and 1 deletions
@@ -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
*/
@@ -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',
@@ -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,