Skip to content
Snippets Groups Projects
Commit 1d99a8d8 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Fix file reference TCA

parent f5d50071
No related branches found
No related tags found
No related merge requests found
......@@ -273,35 +273,29 @@ $tx_sgjobs_domain_model_job_application = [
'cover_letter' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.cover_letter',
'config' => [
'type' => 'group',
'internal_type' => 'file',
'allowed' => 'pdf',
'size' => 1,
'max_size' => 2000
],
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'cover_letter',
['maxitems' => 1, 'minitems' => 1],
'pdf'
),
],
'certificate' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.certificate',
'config' => [
'type' => 'group',
'internal_type' => 'file',
'allowed' => 'pdf',
'size' => 1,
'max_size' => 2000
],
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'certificate',
['maxitems' => 1, 'minitems' => 1],
'pdf'
),
],
'cv' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.cv',
'config' => [
'type' => 'group',
'internal_type' => 'file',
'allowed' => 'pdf',
'size' => 1,
'max_size' => 2000
],
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'cv',
['maxitems' => 1, 'minitems' => 1],
'pdf'
),
]
],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment