revert: additional fields for guide

This reverts commit 4ad6d09aaf.
This commit is contained in:
Björn Fromme
2024-11-20 16:02:45 +01:00
parent 4ad6d09aaf
commit 3f45c1a9f9
4 changed files with 1 additions and 65 deletions
@@ -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;
}
}
@@ -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',
@@ -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,
@@ -141,13 +141,6 @@
</div>
</div>
<div class="lg:w-3/4 pt-8 lg:pt-0 lg:px-8 text-white" data-rte-content>
<f:if condition="{travelinfo.guideName} && {travelinfo.guidePhone}">
<p>
<strong>E&amp;P Reiseleitung</strong>
<br>
{travelinfo.guideName} {travelinfo.guidePhone}
</p>
</f:if>
{travelinfo.importantPhoneNumbers -> f:format.html()}
</div>
</div>