2019-07-18 13:44:19 +02:00
< ? php
return [
'ctrl' => [
2020-10-01 16:35:34 +02:00
'title' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event' ,
2019-07-18 13:44:19 +02:00
'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' ,
'starttime' => 'starttime' ,
'endtime' => 'endtime' ,
],
'searchFields' => 'title,global_id,slug,teaser,details,price_info,street,district,city,zip,country,web,booking,ticket,facebook,youtube,latitude,longitude' ,
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.gif'
],
'interface' => [
2020-08-19 11:30:13 +02:00
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, global_id, slug, highlight, teaser, details, price_info, name, street, district, city, zip, country, phone, web, ticket, facebook, youtube, instagram, latitude, longitude, images, categories, dates, organizer, region' ,
2019-07-18 13:44:19 +02:00
],
'types' => [
2020-08-19 11:30:13 +02:00
'1' => [ 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, global_id, slug, highlight, teaser, details, price_info, name, street, district, city, zip, country, phone, web, ticket, facebook, youtube, instagram, latitude, longitude, images, categories, dates, organizer, region, --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' ,
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'special' => 'languages' ,
'items' => [
[
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages' ,
- 1 ,
'flags-multiple'
]
],
'default' => 0 ,
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'exclude' => true ,
'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_event' ,
'foreign_table_where' => 'AND {#tx_events_domain_model_event}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_event}.{#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 => '' ,
'invertStateDisplay' => true
]
],
],
],
'starttime' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime' ,
'config' => [
'type' => 'input' ,
'renderType' => 'inputDateTime' ,
'eval' => 'datetime,int' ,
'default' => 0 ,
'behaviour' => [
'allowLanguageSynchronization' => true
]
],
],
'endtime' => [
'exclude' => true ,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime' ,
'config' => [
'type' => 'input' ,
'renderType' => 'inputDateTime' ,
'eval' => 'datetime,int' ,
'default' => 0 ,
'range' => [
'upper' => mktime ( 0 , 0 , 0 , 1 , 1 , 2038 )
],
'behaviour' => [
'allowLanguageSynchronization' => true
]
],
],
'title' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.title' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
]
],
'global_id' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.global_id' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'slug' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.slug' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'slug' ,
'size' => 50 ,
'generatorOptions' => [
'fields' => [ 'title' ],
'fieldSeparator' => '/' ,
'prefixParentPageSlug' => false ,
],
'fallbackCharacter' => '-' ,
'eval' => 'uniqueInSite' ,
'default' => '' ,
],
],
'highlight' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.highlight' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'check' ,
'items' => [
'1' => [
'0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
]
],
'default' => 0 ,
]
],
'teaser' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.teaser' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'text' ,
'cols' => 40 ,
'rows' => 15 ,
'eval' => 'trim'
]
],
'details' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.details' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'text' ,
'enableRichtext' => true ,
'richtextConfiguration' => 'default' ,
'fieldControl' => [
'fullScreenRichtext' => [
'disabled' => false ,
],
],
'cols' => 40 ,
'rows' => 15 ,
'eval' => 'trim' ,
],
],
'price_info' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.price_info' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'text' ,
'cols' => 40 ,
'rows' => 15 ,
'eval' => 'trim'
]
],
2020-08-17 14:21:03 +02:00
'name' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.name' ,
2020-08-17 14:21:03 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'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_event.xlf:tx_events_domain_model_event.street' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'district' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.district' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'city' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.city' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'zip' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.zip' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'country' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.country' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
2020-03-16 13:52:58 +01:00
'phone' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.phone' ,
2020-03-16 13:52:58 +01:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'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_event.xlf:tx_events_domain_model_event.web' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
2020-08-19 11:30:13 +02:00
'ticket' => [
2019-07-18 13:44:19 +02:00
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.ticket' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
2020-08-19 11:30:13 +02:00
'facebook' => [
2019-07-18 13:44:19 +02:00
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.facebook' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
2020-08-19 11:30:13 +02:00
'youtube' => [
2019-07-18 13:44:19 +02:00
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.youtube' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
2020-08-19 11:30:13 +02:00
'instagram' => [
2019-07-18 13:44:19 +02:00
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.instagram' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'latitude' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.latitude' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'longitude' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.longitude' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 30 ,
'eval' => 'trim'
],
],
'images' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.images' ,
2019-07-18 13:44:19 +02:00
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility :: getFileFieldTCAConfig (
'images' ,
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' ,
'showPossibleLocalizationRecords' => true ,
'showRemovedLocalizationRecords' => true ,
'showAllLocalizationLink' => true ,
'showSynchronizationLink' => true ,
],
'foreign_match_fields' => [
'fieldname' => 'images' ,
'tablenames' => 'tx_events_domain_model_event' ,
'table_local' => 'sys_file' ,
],
'foreign_types' => [
'0' => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_TEXT => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_IMAGE => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_AUDIO => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_VIDEO => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
],
\TYPO3\CMS\Core\Resource\File :: FILETYPE_APPLICATION => [
'showitem' => '
-- palette -- ; LLL : EXT : lang / locallang_tca . xlf : sys_file_reference . imageoverlayPalette ; imageoverlayPalette ,
-- palette -- ;; filePalette '
]
],
'maxitems' => 1
],
$GLOBALS [ 'TYPO3_CONF_VARS' ][ 'GFX' ][ 'imagefile_ext' ]
),
],
'categories' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.categories' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'input' ,
'size' => 4 ,
'eval' => 'int'
]
],
'dates' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.dates' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'inline' ,
'foreign_table' => 'tx_events_domain_model_date' ,
'foreign_field' => 'event' ,
'maxitems' => 9999 ,
'appearance' => [
'collapseAll' => 1 ,
'useSortable' => 0 ,
'expandSingle' => 1 ,
'enabledControls' => array (
'info' => false ,
'new' => false ,
'dragdrop' => false ,
'sort' => false ,
'hide' => false ,
'delete' => false ,
'localize' => false ,
),
'levelLinksPosition' => 'top' ,
'showPossibleLocalizationRecords' => false ,
'showRemovedLocalizationRecords' => false ,
'showSynchronizationLink' => false ,
'showAllLocalizationLink' => false ,
],
],
],
'organizer' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.organizer' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'foreign_table' => 'tx_events_domain_model_organizer' ,
'minitems' => 0 ,
'maxitems' => 1 ,
],
],
'region' => [
'exclude' => true ,
2020-10-01 16:35:34 +02:00
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_event.xlf:tx_events_domain_model_event.region' ,
2019-07-18 13:44:19 +02:00
'config' => [
'type' => 'select' ,
'renderType' => 'selectSingle' ,
'foreign_table' => 'tx_events_domain_model_region' ,
'minitems' => 0 ,
'maxitems' => 1 ,
],
],
],
];