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..388aa075 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php @@ -39,6 +39,11 @@ class Travelinfo extends AbstractEntity */ protected $introText; + /** + * @var string + */ + protected $busInfoText; + /** * @var string */ @@ -176,6 +181,18 @@ class Travelinfo extends AbstractEntity return $this; } + public function getBusInfoText() + { + return $this->busInfoText; + } + + public function setBusInfoText($busInfoText) + { + $this->busInfoText = $busInfoText; + + return $this; + } + public function getFooterText() { return $this->footerText; 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..094c828b 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 @@ -29,9 +29,9 @@ return [ 'palettes' => [ 'basics' => ['showitem' => 'title,path_segment,--linebreak--,product,hide_address,--linebreak--,links, --linebreak--,teasers'], - 'text' => ['showitem' => 'subline,headline,--linebreak--,intro_text,--linebreak--,footer_text,--linebreak--, - self_arranged_text,--linebreak--,additional_info,--linebreak--,important_phone_numbers,--linebreak--, - important_links'], + 'text' => ['showitem' => 'subline,headline,--linebreak--,intro_text,--linebreak--, bus_info_text,--linebreak--, + footer_text,--linebreak--,self_arranged_text,--linebreak--,additional_info, + --linebreak--,important_phone_numbers,--linebreak--,important_links'], 'images' => ['showitem' => 'header_image,--linebreak--,footer_image'], ], 'columns' => [ @@ -237,6 +237,17 @@ return [ 'enableRichtext' => true, ] ], + 'bus_info_text' => [ + 'exclude' => false, + 'label' => 'Businfo', + 'config' => [ + 'type' => 'text', + 'cols' => 40, + 'rows' => 3, + 'eval' => 'trim', + 'enableRichtext' => true, + ] + ], 'footer_text' => [ 'exclude' => false, 'label' => 'Footertext', diff --git a/public/typo3conf/ext/ep_products/ext_tables.sql b/public/typo3conf/ext/ep_products/ext_tables.sql index 55cbcd99..3689caee 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -1367,6 +1367,7 @@ CREATE TABLE tx_epproducts_domain_model_travelinfo headline varchar(255) DEFAULT '' NOT NULL, subline varchar(255) DEFAULT '' NOT NULL, intro_text text DEFAULT '0' NOT NULL, + bus_info_text text DEFAULT '0' NOT NULL, footer_text text DEFAULT '0' NOT NULL, self_arranged_text text DEFAULT '0' NOT NULL, additional_info text 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 12393908..fdbddd5b 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 @@ -257,6 +257,7 @@

Bitte findet euch mindestens 20 Minuten vor Abfahrt an der gebuchten Haltestelle ein.

+ {travelinfo.busInfoText -> f:format.html()}