mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 09:16:20 +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 = '';
|
protected $title = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* subtitle
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $subtitle = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* globalId
|
* globalId
|
||||||
*
|
*
|
||||||
|
@ -283,6 +290,23 @@ class Event extends AbstractEntity
|
||||||
$this->title = $title;
|
$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
|
* @return string $teaser
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@ return [
|
||||||
'starttime' => 'starttime',
|
'starttime' => 'starttime',
|
||||||
'endtime' => 'endtime',
|
'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'
|
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.svg'
|
||||||
],
|
],
|
||||||
'types' => [
|
'types' => [
|
||||||
|
@ -37,6 +37,7 @@ return [
|
||||||
hidden,
|
hidden,
|
||||||
highlight,
|
highlight,
|
||||||
title,
|
title,
|
||||||
|
subtitle,
|
||||||
teaser,
|
teaser,
|
||||||
slug,
|
slug,
|
||||||
ticket,
|
ticket,
|
||||||
|
@ -174,6 +175,15 @@ return [
|
||||||
'eval' => 'trim'
|
'eval' => 'trim'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'subtitle' => [
|
||||||
|
'exclude' => true,
|
||||||
|
'label' => $l10nPath . ':tx_events_domain_model_event.subtitle',
|
||||||
|
'config' => [
|
||||||
|
'type' => 'input',
|
||||||
|
'size' => 30,
|
||||||
|
'eval' => 'trim'
|
||||||
|
]
|
||||||
|
],
|
||||||
'global_id' => [
|
'global_id' => [
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'label' => $l10nPath . ':tx_events_domain_model_event.global_id',
|
'label' => $l10nPath . ':tx_events_domain_model_event.global_id',
|
||||||
|
|
|
@ -43,6 +43,10 @@
|
||||||
<source>Title</source>
|
<source>Title</source>
|
||||||
<target>Titel</target>
|
<target>Titel</target>
|
||||||
</trans-unit>
|
</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">
|
<trans-unit id="tx_events_domain_model_event.global_id">
|
||||||
<source>Global UID</source>
|
<source>Global UID</source>
|
||||||
<target>Globale UID</target>
|
<target>Globale UID</target>
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
<trans-unit id="tx_events_domain_model_event.title">
|
<trans-unit id="tx_events_domain_model_event.title">
|
||||||
<source>Title</source>
|
<source>Title</source>
|
||||||
</trans-unit>
|
</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">
|
<trans-unit id="tx_events_domain_model_event.global_id">
|
||||||
<source>Global UID</source>
|
<source>Global UID</source>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
CREATE TABLE tx_events_domain_model_event (
|
CREATE TABLE tx_events_domain_model_event (
|
||||||
|
|
||||||
title varchar(255) DEFAULT '' NOT NULL,
|
title varchar(255) DEFAULT '' NOT NULL,
|
||||||
|
subtitle text,
|
||||||
global_id varchar(255) DEFAULT '' NOT NULL,
|
global_id varchar(255) DEFAULT '' NOT NULL,
|
||||||
slug varchar(255) DEFAULT '' NOT NULL,
|
slug varchar(255) DEFAULT '' NOT NULL,
|
||||||
highlight smallint(5) unsigned DEFAULT '0' NOT NULL,
|
highlight smallint(5) unsigned DEFAULT '0' NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue