2019-07-18 13:44:19 +02:00
< ? php
2021-09-07 09:03:02 +02: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_organizer.xlf:tx_events_domain_model_organizer' ,
2019-07-18 13:44:19 +02:00
'label' => 'name' ,
'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' => 'name,street,district,city,zip,phone,web,email' ,
2023-06-07 08:56:42 +02:00
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_organizer.svg' ,
2019-07-18 13:44:19 +02:00
],
'types' => [
'1' => [ 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, street, district, city, zip, phone, web, email, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime' ],
],
'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_organizer' ,
'foreign_table_where' => 'AND {#tx_events_domain_model_organizer}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_organizer}.{#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
],
],
'name' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.name' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'street' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.street' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'district' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.district' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'city' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.city' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'zip' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.zip' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'phone' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.phone' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'web' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.web' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
'email' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_organizer.xlf:tx_events_domain_model_organizer.email' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2019-07-18 13:44:19 +02:00
],
],
2021-02-11 12:05:02 +01:00
2019-07-18 13:44:19 +02:00
],
];