mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-21 22:36:10 +01:00
Add subtitle filed to event
This commit is contained in:
parent
8e755d775a
commit
ce9a1e17e5
5 changed files with 43 additions and 1 deletions
|
@ -24,6 +24,13 @@ class Event extends AbstractEntity
|
|||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* subtitle
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $subtitle = '';
|
||||
|
||||
/**
|
||||
* globalId
|
||||
*
|
||||
|
@ -283,6 +290,23 @@ class Event extends AbstractEntity
|
|||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string $subtitle
|
||||
*/
|
||||
public function getSubtitle()
|
||||
{
|
||||
return $this->subtitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $subtitle
|
||||
* @return void
|
||||
*/
|
||||
public function setSubtitle($subtitle)
|
||||
{
|
||||
$this->subtitle = $subtitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string $teaser
|
||||
*/
|
||||
|
|
|
@ -25,7 +25,7 @@ return [
|
|||
'starttime' => 'starttime',
|
||||
'endtime' => 'endtime',
|
||||
],
|
||||
'searchFields' => 'title,global_id,teaser',
|
||||
'searchFields' => 'title,subtitle,global_id,teaser',
|
||||
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.svg'
|
||||
],
|
||||
'types' => [
|
||||
|
@ -37,6 +37,7 @@ return [
|
|||
hidden,
|
||||
highlight,
|
||||
title,
|
||||
subtitle,
|
||||
teaser,
|
||||
slug,
|
||||
ticket,
|
||||
|
@ -174,6 +175,15 @@ return [
|
|||
'eval' => 'trim'
|
||||
]
|
||||
],
|
||||
'subtitle' => [
|
||||
'exclude' => true,
|
||||
'label' => $l10nPath . ':tx_events_domain_model_event.subtitle',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim'
|
||||
]
|
||||
],
|
||||
'global_id' => [
|
||||
'exclude' => true,
|
||||
'label' => $l10nPath . ':tx_events_domain_model_event.global_id',
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
<source>Title</source>
|
||||
<target>Titel</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_event.subtitle">
|
||||
<source>Subtitle</source>
|
||||
<target>Untertitel</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_event.global_id">
|
||||
<source>Global UID</source>
|
||||
<target>Globale UID</target>
|
||||
|
|
|
@ -33,6 +33,9 @@
|
|||
<trans-unit id="tx_events_domain_model_event.title">
|
||||
<source>Title</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_event.subtitle">
|
||||
<source>Subtitle</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_event.global_id">
|
||||
<source>Global UID</source>
|
||||
</trans-unit>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
CREATE TABLE tx_events_domain_model_event (
|
||||
|
||||
title varchar(255) DEFAULT '' NOT NULL,
|
||||
subtitle text,
|
||||
global_id varchar(255) DEFAULT '' NOT NULL,
|
||||
slug varchar(255) DEFAULT '' NOT NULL,
|
||||
highlight smallint(5) unsigned DEFAULT '0' NOT NULL,
|
||||
|
|
Loading…
Reference in a new issue