diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php index d81545ae..ad519320 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php @@ -89,6 +89,16 @@ class Travelinfo extends AbstractEntity */ protected $hideAddress = false; + /** + * @var string + */ + protected $guideName; + + /** + * @var string + */ + protected $guidePhone; + public function __construct() { $this->initStorageObjects(); @@ -291,5 +301,29 @@ class Travelinfo extends AbstractEntity $this->hideAddress = $hideAddress; return $this; } + + public function getGuideName() + { + return $this->guideName; + } + + public function setGuideName($guideName) + { + $this->guideName = $guideName; + + return $this; + } + + public function getGuidePhone() + { + return $this->guidePhone; + } + + public function setGuidePhone($guidePhone) + { + $this->guidePhone = $guidePhone; + + return $this; + } } diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_travelinfo.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_travelinfo.php index a231705c..540896a0 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_travelinfo.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_travelinfo.php @@ -23,7 +23,9 @@ return [ ], 'types' => [ '1' => [ - 'showitem' => '--palette--;;basics,--div--;Texte,--palette--;;text,--div--;Bilder,--palette--;;images', + 'showitem' => '--palette--;;basics,--palette--;Reiseleitung;guide, + --div--;Texte,--palette--;;text, + --div--;Bilder,--palette--;;images', ], ], 'palettes' => [ @@ -33,6 +35,7 @@ return [ self_arranged_text,--linebreak--,additional_info,--linebreak--,important_phone_numbers,--linebreak--, important_links'], 'images' => ['showitem' => 'header_image,--linebreak--,footer_image'], + 'guide' => ['showitem' => 'guide_name, guide_phone'], ], 'columns' => [ 'sys_language_uid' => [ @@ -292,6 +295,24 @@ return [ 'enableRichtext' => true, ] ], + 'guide_name' => [ + 'exclude' => false, + 'label' => 'Name', + 'config' => [ + 'type' => 'input', + 'size' => 30, + 'eval' => 'trim' + ], + ], + 'guide_phone' => [ + 'exclude' => false, + 'label' => 'Telefon', + 'config' => [ + 'type' => 'input', + 'size' => 30, + 'eval' => 'trim' + ], + ], 'teasers' => [ 'exclude' => false, 'label' => 'Inhalte', diff --git a/public/typo3conf/ext/ep_products/ext_tables.sql b/public/typo3conf/ext/ep_products/ext_tables.sql index 6ab240b8..08bc2448 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -1374,6 +1374,8 @@ CREATE TABLE tx_epproducts_domain_model_travelinfo header_image int(11) DEFAULT '0' NOT NULL, footer_image int(11) DEFAULT '0' NOT NULL, links int(11) DEFAULT '0' NOT NULL, + guide_name varchar(255) DEFAULT '' NOT NULL, + guide_phone varchar(255) DEFAULT '' NOT NULL, teasers int(11) DEFAULT '0' NOT NULL, product int(11) unsigned DEFAULT '0', hide_address tinyint(4) unsigned DEFAULT '0' NOT NULL, diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html index 6f7e388e..2e0b9e7d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html @@ -141,6 +141,13 @@
+ E&P Reiseleitung
+
+ {travelinfo.guideName} {travelinfo.guidePhone}
+