diff --git a/Classes/Domain/Model/Date.php b/Classes/Domain/Model/Date.php
index 4c65766..390a0b1 100644
--- a/Classes/Domain/Model/Date.php
+++ b/Classes/Domain/Model/Date.php
@@ -35,6 +35,11 @@ class Date extends AbstractEntity
*/
protected $event = null;
+ /**
+ * @var string
+ */
+ protected $canceledLink = '';
+
/**
* @var int
*/
@@ -135,4 +140,13 @@ class Date extends AbstractEntity
return null;
}
+
+ public function getCanceledLink(): string
+ {
+ if ($this->getCanceled() === 'canceled') {
+ return $this->canceledLink;
+ }
+
+ return '';
+ }
}
diff --git a/Configuration/TCA/tx_events_domain_model_date.php b/Configuration/TCA/tx_events_domain_model_date.php
index 5a8a68b..f8a25ba 100644
--- a/Configuration/TCA/tx_events_domain_model_date.php
+++ b/Configuration/TCA/tx_events_domain_model_date.php
@@ -23,7 +23,7 @@ return [
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_date.svg'
],
'types' => [
- '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, postponed_date, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
+ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, postponed_date, canceled_link, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
],
'columns' => [
'sys_language_uid' => [
@@ -180,6 +180,25 @@ return [
],
],
],
+ 'canceled_link' => [
+ 'exclude' => true,
+ 'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled_link',
+ 'displayCond' => 'FIELD:canceled:=:canceled',
+ 'config' => [
+ 'type' => 'input',
+ 'softref' => 'typolink',
+ 'renderType' => 'inputLink',
+ 'max' => 1024,
+ 'eval' => 'trim',
+ 'fieldControl' => [
+ 'linkPopup' => [
+ 'options' => [
+ 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
+ ],
+ ],
+ ],
+ ],
+ ],
'event' => array(
'exclude' => 1,
diff --git a/Resources/Private/Language/de.locallang_csh_date.xlf b/Resources/Private/Language/de.locallang_csh_date.xlf
index 257e605..b931349 100644
--- a/Resources/Private/Language/de.locallang_csh_date.xlf
+++ b/Resources/Private/Language/de.locallang_csh_date.xlf
@@ -39,6 +39,10 @@
Noch nicht definiert
+
+
+ Link bezüglich Absage
+
Verknüpfte Veranstaltungen
diff --git a/Resources/Private/Language/locallang_csh_date.xlf b/Resources/Private/Language/locallang_csh_date.xlf
index d52becb..42a521b 100644
--- a/Resources/Private/Language/locallang_csh_date.xlf
+++ b/Resources/Private/Language/locallang_csh_date.xlf
@@ -30,6 +30,9 @@
+
+
+
diff --git a/ext_tables.sql b/ext_tables.sql
index 30526af..06dc017 100644
--- a/ext_tables.sql
+++ b/ext_tables.sql
@@ -92,5 +92,6 @@ CREATE TABLE tx_events_domain_model_date (
event int(11) unsigned DEFAULT '0' NOT NULL,
postponed_date int(11) unsigned DEFAULT '0' NOT NULL,
+ canceled_link varchar(1024) DEFAULT '' NOT NULL,
);