2019-07-18 13:44:19 +02:00
< ? php
2021-01-12 16:42:58 +01:00
2023-11-27 10:04:42 +01:00
declare ( strict_types = 1 );
2019-07-18 13:44:19 +02:00
return [
'ctrl' => [
2020-10-01 16:35:34 +02:00
'title' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date' ,
2019-07-18 13:44:19 +02:00
'label' => 'start' ,
2021-01-12 16:42:58 +01:00
'label_alt' => 'end, canceled' ,
'label_alt_force' => true ,
2019-07-18 13:44:19 +02:00
'tstamp' => 'tstamp' ,
'crdate' => 'crdate' ,
'versioningWS' => true ,
'languageField' => 'sys_language_uid' ,
'transOrigPointerField' => 'l10n_parent' ,
'transOrigDiffSourceField' => 'l10n_diffsource' ,
//'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden' ,
'starttime' => 'starttime' ,
'endtime' => 'endtime' ,
],
'searchFields' => '' ,
2023-06-07 08:56:42 +02:00
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_date.svg' ,
2019-07-18 13:44:19 +02:00
],
'types' => [
2022-11-23 10:59:55 +01:00
'1' => [ 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, postponed_date, canceled_link, slug, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime' ],
2019-07-18 13:44:19 +02:00
],
'columns' => [
'sys_language_uid' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language' ,
2023-11-27 10:04:42 +01:00
'config' => [ 'type' => 'language' ],
2019-07-18 13:44:19 +02:00
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'default' => 0 ,
'items' => [
2023-11-27 10:04:42 +01:00
[ 'label' => '' , 'value' => 0 ],
2019-07-18 13:44:19 +02:00
],
'foreign_table' => 'tx_events_domain_model_date' ,
'foreign_table_where' => 'AND {#tx_events_domain_model_date}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_date}.{#sys_language_uid} IN (-1,0)' ,
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough' ,
],
],
't3ver_label' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
],
],
'hidden' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible' ,
'config' => [
'type' => 'check' ,
'renderType' => 'checkboxToggle' ,
'items' => [
[
2023-11-27 10:04:42 +01:00
'label' => '' ,
2023-06-07 08:56:42 +02:00
'invertStateDisplay' => true ,
],
2019-07-18 13:44:19 +02:00
],
],
],
'starttime' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime' ,
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2019-07-18 13:44:19 +02:00
'behaviour' => [
2023-06-07 08:56:42 +02:00
'allowLanguageSynchronization' => true ,
],
2019-07-18 13:44:19 +02:00
],
],
'endtime' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime' ,
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2019-07-18 13:44:19 +02:00
'behaviour' => [
2023-06-07 08:56:42 +02:00
'allowLanguageSynchronization' => true ,
],
2019-07-18 13:44:19 +02:00
],
],
'start' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.start' ,
2019-07-18 13:44:19 +02:00
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2019-07-18 13:44:19 +02:00
'size' => 12 ,
'default' => null ,
],
],
'end' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.end' ,
2019-07-18 13:44:19 +02:00
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2019-07-18 13:44:19 +02:00
'size' => 12 ,
'default' => null ,
],
],
2021-01-12 16:42:58 +01:00
'canceled' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled' ,
'config' => [
2021-03-11 08:31:49 +01:00
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'default' => 'no' ,
2021-01-12 16:42:58 +01:00
'items' => [
2021-03-11 08:31:49 +01:00
'0' => [
2023-11-27 10:04:42 +01:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.no' ,
'value' => 'no' ,
2021-03-11 08:31:49 +01:00
],
'1' => [
2023-11-27 10:04:42 +01:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.canceled' ,
'value' => 'canceled' ,
2021-03-11 08:31:49 +01:00
],
'2' => [
2023-11-27 10:04:42 +01:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.postponed' ,
'value' => 'postponed' ,
2021-03-11 08:31:49 +01:00
],
2021-01-12 16:42:58 +01:00
],
],
],
2021-03-16 12:10:07 +01:00
'postponed_date' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.postponed_date' ,
'displayCond' => 'FIELD:canceled:=:postponed' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'foreign_table' => 'tx_events_domain_model_date' ,
2021-03-16 15:22:27 +01:00
'foreign_table_where' => ' AND {#tx_events_domain_model_date}.{#event} = ###REC_FIELD_event### AND {#tx_events_domain_model_date}.{#uid} != ###THIS_UID###' ,
2021-03-16 12:10:07 +01:00
'default' => '0' ,
'items' => [
'0' => [
2023-11-27 10:04:42 +01:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.postponed_date.0' ,
'value' => '0' ,
2021-03-16 12:10:07 +01:00
],
],
],
],
2021-03-16 16:05:39 +01:00
'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' => [
2023-11-27 10:04:42 +01:00
'type' => 'link' ,
2021-03-16 16:05:39 +01:00
],
],
2022-11-23 10:59:55 +01:00
'slug' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.slug' ,
'config' => [
'type' => 'slug' ,
'size' => 50 ,
'generatorOptions' => [
2023-04-03 11:34:56 +02:00
'fields' => [ 'event-title' , 'start-with-time' ],
2022-11-23 10:59:55 +01:00
'fieldSeparator' => '-' ,
'prefixParentPageSlug' => false ,
],
'fallbackCharacter' => '-' ,
'eval' => 'uniqueInSite' ,
'default' => '' ,
],
],
2023-06-07 08:56:42 +02:00
'event' => [
2019-07-18 13:44:19 +02:00
'exclude' => 1 ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.event' ,
2023-06-07 08:56:42 +02:00
'config' => [
2019-07-18 13:44:19 +02:00
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'foreign_table' => 'tx_events_domain_model_event' ,
'size' => 1 ,
'minitems' => 0 ,
'maxitems' => 1 ,
2021-09-07 09:03:02 +02:00
'readOnly' => 1 ,
2023-06-07 08:56:42 +02:00
],
],
2019-07-18 13:44:19 +02:00
],
];