2021-01-11 10:15:21 +01:00
< ? php
return [
'ctrl' => [
'title' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_partner.xlf:tx_events_domain_model_partner' ,
'label' => 'title' ,
'tstamp' => 'tstamp' ,
'crdate' => 'crdate' ,
'cruser_id' => 'cruser_id' ,
'versioningWS' => true ,
'languageField' => 'sys_language_uid' ,
'transOrigPointerField' => 'l10n_parent' ,
'transOrigDiffSourceField' => 'l10n_diffsource' ,
'delete' => 'deleted' ,
'enablecolumns' => [
'disabled' => 'hidden' ,
],
'searchFields' => 'title' ,
2023-06-07 08:56:42 +02:00
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_partner.svg' ,
2021-01-11 10:15:21 +01:00
],
'types' => [
'1' => [ 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, link, images, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access' ],
],
'columns' => [
'sys_language_uid' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'special' => 'languages' ,
'items' => [
[
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages' ,
- 1 ,
2023-06-07 08:56:42 +02:00
'flags-multiple' ,
],
2021-01-11 10:15:21 +01:00
],
'default' => 0 ,
],
],
'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' => [
[ '' , 0 ],
],
'foreign_table' => 'tx_events_domain_model_partner' ,
'foreign_table_where' => 'AND {#tx_events_domain_model_partner}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_partner}.{#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' => [
[
0 => '' ,
1 => '' ,
2023-06-07 08:56:42 +02:00
'invertStateDisplay' => true ,
],
2021-01-11 10:15:21 +01:00
],
],
],
'title' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_partner.xlf:tx_events_domain_model_partner.title' ,
'config' => [
'type' => 'input' ,
'size' => 30 ,
2023-06-07 08:56:42 +02:00
'eval' => 'trim' ,
],
2021-01-11 10:15:21 +01:00
],
'link' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_partner.xlf:tx_events_domain_model_partner.link' ,
'config' => [
'type' => 'input' ,
'renderType' => 'inputLink' ,
'eval' => 'trim' ,
'max' => 1024 ,
'size' => 50 ,
'softref' => 'typolink' ,
],
],
'images' => [
'exclude' => true ,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_partner.xlf:tx_events_domain_model_partner.images' ,
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility :: getFileFieldTCAConfig ( 'images' , [
'appearance' => [
2023-06-07 08:56:42 +02:00
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' ,
2021-01-11 10:15:21 +01:00
],
// custom configuration for displaying fields in the overlay/reference table
// to use the imageoverlayPalette instead of the basicoverlayPalette
'overrideChildTca' => [
'types' => [
'0' => [
'showitem' => '
-- palette -- ;; imageoverlayPalette ,
2023-06-07 08:56:42 +02:00
-- palette -- ;; filePalette ' ,
2021-01-11 10:15:21 +01:00
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_IMAGE => [
'showitem' => '
-- palette -- ;; imageoverlayPalette ,
2023-06-07 08:56:42 +02:00
-- palette -- ;; filePalette ' ,
2021-01-11 10:15:21 +01:00
],
],
],
2023-06-07 08:56:42 +02:00
], $GLOBALS [ 'TYPO3_CONF_VARS' ][ 'GFX' ][ 'imagefile_ext' ]),
2021-01-11 10:15:21 +01:00
],
],
];