feat: additional text field in travel info

This commit is contained in:
Björn Fromme
2025-01-17 15:36:00 +01:00
parent 566c4bfad9
commit ba43914f24
4 changed files with 31 additions and 1 deletions
@@ -44,6 +44,11 @@ class Travelinfo extends AbstractEntity
*/
protected $busInfoText;
/**
* @var string
*/
protected $departureText;
/**
* @var string
*/
@@ -193,6 +198,18 @@ class Travelinfo extends AbstractEntity
return $this;
}
public function getDepartureText()
{
return $this->departureText;
}
public function setDepartureText($departureText)
{
$this->departureText = $departureText;
return $this;
}
public function getFooterText()
{
return $this->footerText;
@@ -30,7 +30,7 @@ return [
'basics' => ['showitem' => 'title,path_segment,--linebreak--,product,hide_address,--linebreak--,links,
--linebreak--,teasers'],
'text' => ['showitem' => 'subline,headline,--linebreak--,intro_text,--linebreak--, bus_info_text,--linebreak--,
footer_text,--linebreak--,self_arranged_text,--linebreak--,additional_info,
departure_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'],
],
@@ -248,6 +248,17 @@ return [
'enableRichtext' => true,
]
],
'departure_text' => [
'exclude' => false,
'label' => 'Abreise',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 3,
'eval' => 'trim',
'enableRichtext' => true,
]
],
'footer_text' => [
'exclude' => false,
'label' => 'Footertext',
@@ -1369,6 +1369,7 @@ CREATE TABLE tx_epproducts_domain_model_travelinfo
subline varchar(255) DEFAULT '' NOT NULL,
intro_text text DEFAULT '0' NOT NULL,
bus_info_text text DEFAULT '0' NOT NULL,
departure_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,
@@ -278,6 +278,7 @@
</tr>
</f:for>
</table>
{travelinfo.departureText -> f:format.html()}
</f:section>
<f:section name="Icon">