2022-08-02 15:56:18 +02:00
< ? php
2023-11-27 10:04:42 +01:00
declare ( strict_types = 1 );
2022-08-02 15:56:18 +02:00
$l10nPathGeneral = 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf' ;
$l10nPath = 'LLL:EXT:events/Resources/Private/Language/locallang_csh_location.xlf' ;
return [
'ctrl' => [
'title' => $l10nPath . ':tx_events_domain_model_location' ,
'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' ,
],
2024-07-24 10:44:34 +02:00
'default_sortby' => 'name' ,
2022-08-02 15:56:18 +02:00
'searchFields' => 'name' ,
2023-06-07 08:56:42 +02:00
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_location.svg' ,
2022-08-02 15:56:18 +02:00
],
'types' => [
'1' => [
'showitem' => '--palette--;' . $l10nPath . ' : palette . general ; general ,
sys_language_uid ,
l10n_parent ,
l10n_diffsource ,
hidden ,
name ,
street ,
district ,
city ,
zip ,
country ,
phone ,
latitude ,
longitude ,
2024-07-24 10:44:34 +02:00
-- div -- ; ' . $l10nPath . ' : tabs . grouping ,
children ,
-- div -- ; ' . $l10nPath . ' : tabs . tech ,
global_id ,
2022-08-02 15:56:18 +02:00
-- div -- ; ' . $l10nPath . ' : tabs . access ,
starttime ,
2023-06-07 08:56:42 +02:00
endtime ' ,
2022-08-02 15:56:18 +02:00
],
],
'columns' => [
'sys_language_uid' => [
'exclude' => true ,
'label' => $l10nPathGeneral . ':LGL.language' ,
2023-11-27 10:04:42 +01:00
'config' => [ 'type' => 'language' ],
2022-08-02 15:56:18 +02:00
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'label' => $l10nPathGeneral . ':LGL.l18n_parent' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'default' => 0 ,
'items' => [
2023-11-27 10:04:42 +01:00
[ 'label' => '' , 'value' => 0 ],
2022-08-02 15:56:18 +02:00
],
'foreign_table' => 'tx_events_domain_model_location' ,
'foreign_table_where' => 'AND {#tx_events_domain_model_location}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_location}.{#sys_language_uid} IN (-1,0)' ,
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough' ,
],
],
't3ver_label' => [
'label' => $l10nPathGeneral . ':LGL.versionLabel' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
],
],
'hidden' => [
'exclude' => true ,
'label' => $l10nPathGeneral . ':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 ,
],
2022-08-02 15:56:18 +02:00
],
],
],
'starttime' => [
'exclude' => true ,
'label' => $l10nPathGeneral . ':LGL.starttime' ,
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2022-08-02 15:56:18 +02:00
'behaviour' => [
2023-06-07 08:56:42 +02:00
'allowLanguageSynchronization' => true ,
],
2022-08-02 15:56:18 +02:00
],
],
'endtime' => [
'exclude' => true ,
'label' => $l10nPathGeneral . ':LGL.endtime' ,
'config' => [
2023-11-27 10:04:42 +01:00
'type' => 'datetime' ,
'format' => 'datetime' ,
2022-08-02 15:56:18 +02:00
'behaviour' => [
2023-06-07 08:56:42 +02:00
'allowLanguageSynchronization' => true ,
],
2022-08-02 15:56:18 +02:00
],
],
'global_id' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.global_id' ,
'description' => $l10nPath . ':tx_events_domain_model_location.global_id.description' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
2024-07-24 10:44:34 +02:00
'children' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.children' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectMultipleSideBySide' ,
'foreign_table' => 'tx_events_domain_model_location' ,
'fieldControl' => [
'editPopup' => [
'disabled' => false ,
],
],
],
],
2022-08-02 15:56:18 +02:00
'name' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.name' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'street' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.street' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'district' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.district' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'city' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.city' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'zip' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.zip' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'country' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.country' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'phone' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.phone' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'latitude' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.latitude' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
'longitude' => [
'exclude' => true ,
'label' => $l10nPath . ':tx_events_domain_model_location.longitude' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
2022-08-02 15:56:18 +02:00
],
],
],
];