From 3f45c1a9f9ac7c786d44de634267c85259356da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 20 Nov 2024 16:02:45 +0100 Subject: [PATCH] revert: additional fields for guide This reverts commit 4ad6d09aafb77f1b326e1219a6d64a7395cfa552. --- .../Classes/Domain/Model/Travelinfo.php | 34 ------------------- .../tx_epproducts_domain_model_travelinfo.php | 23 +------------ .../typo3conf/ext/ep_products/ext_tables.sql | 2 -- .../Private/Templates/Travelinfo/Index.html | 7 ---- 4 files changed, 1 insertion(+), 65 deletions(-) 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 ad519320..d81545ae 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Travelinfo.php @@ -89,16 +89,6 @@ class Travelinfo extends AbstractEntity */ protected $hideAddress = false; - /** - * @var string - */ - protected $guideName; - - /** - * @var string - */ - protected $guidePhone; - public function __construct() { $this->initStorageObjects(); @@ -301,29 +291,5 @@ 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 540896a0..a231705c 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,9 +23,7 @@ return [ ], 'types' => [ '1' => [ - 'showitem' => '--palette--;;basics,--palette--;Reiseleitung;guide, - --div--;Texte,--palette--;;text, - --div--;Bilder,--palette--;;images', + 'showitem' => '--palette--;;basics,--div--;Texte,--palette--;;text,--div--;Bilder,--palette--;;images', ], ], 'palettes' => [ @@ -35,7 +33,6 @@ 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' => [ @@ -295,24 +292,6 @@ 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 08bc2448..6ab240b8 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -1374,8 +1374,6 @@ 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 2e0b9e7d..6f7e388e 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,13 +141,6 @@
- -

- E&P Reiseleitung -
- {travelinfo.guideName} {travelinfo.guidePhone} -

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