69a51c18a952c688a71363791836aebcf3308b52
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_metadata.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata',
5 'label' => 'file',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'type' => 'file:type',
10 'hideTable' => true,
11 'rootLevel' => true,
12 'languageField' => 'sys_language_uid',
13 'transOrigPointerField' => 'l10n_parent',
14 'transOrigDiffSourceField' => 'l10n_diffsource',
15 'versioningWS' => true,
16 'origUid' => 't3_origuid',
17 'default_sortby' => 'ORDER BY crdate DESC',
18 'typeicon_classes' => [
19 'default' => 'mimetypes-other-other'
20 ],
21 'security' => [
22 'ignoreWebMountRestriction' => true,
23 'ignoreRootLevelRestriction' => true,
24 ],
25 'searchFields' => 'file,title,description,alternative'
26 ],
27 'interface' => [
28 'showRecordFieldList' => 'file, title, description, alternative'
29 ],
30 'columns' => [
31 'sys_language_uid' => [
32 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
33 'config' => [
34 'type' => 'select',
35 'renderType' => 'selectSingle',
36 'foreign_table' => 'sys_language',
37 'foreign_table_where' => 'ORDER BY sys_language.title',
38 'items' => [
39 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
40 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
41 ],
42 'default' => 0,
43 'fieldWizard' => [
44 'selectIcons' => [
45 'disabled' => false,
46 ],
47 ],
48 ]
49 ],
50 'l10n_parent' => [
51 'displayCond' => 'FIELD:sys_language_uid:>:0',
52 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
53 'config' => [
54 'type' => 'select',
55 'renderType' => 'selectSingle',
56 'items' => [
57 ['', 0]
58 ],
59 'foreign_table' => 'sys_file_metadata',
60 'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)',
61 'default' => 0
62 ]
63 ],
64 'l10n_diffsource' => [
65 'config' => [
66 'type' => 'passthrough',
67 'default' => ''
68 ]
69 ],
70 't3ver_label' => [
71 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
72 'config' => [
73 'type' => 'input',
74 'size' => 30,
75 'max' => 30
76 ]
77 ],
78 'fileinfo' => [
79 'config' => [
80 'type' => 'user',
81 'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Hook\\FileInfoHook->renderFileMetadataInfo'
82 ]
83 ],
84 'file' => [
85 'displayCond' => 'FIELD:sys_language_uid:=:0',
86 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file',
87 'config' => [
88 'readOnly' => true,
89 'type' => 'select',
90 'renderType' => 'selectSingle',
91 'foreign_table' => 'sys_file',
92 'minitems' => 1,
93 'maxitems' => 1,
94 'size' => 1,
95 'default' => 0,
96 ]
97 ],
98 'title' => [
99 'exclude' => true,
100 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.title',
101 'l10n_mode' => 'prefixLangTitle',
102 'config' => [
103 'type' => 'input',
104 'size' => 30,
105 'placeholder' => '__row|file|name'
106 ]
107 ],
108 'description' => [
109 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.description',
110 'l10n_mode' => 'prefixLangTitle',
111 'config' => [
112 'type' => 'text',
113 'cols' => 40,
114 'rows' => 3
115 ]
116 ],
117 'alternative' => [
118 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.alternative',
119 'config' => [
120 'type' => 'input',
121 'size' => 30,
122 ]
123 ],
124 'width' => [
125 'l10n_mode' => 'exclude'
126 ],
127 'height' => [
128 'l10n_mode' => 'exclude'
129 ]
130 ],
131 'types' => [
132 '1' => ['showitem' => '
133 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
134 fileinfo, title, description, alternative,
135 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
136 --palette--;;language,
137 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
138 categories,
139 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
140 ']
141 ],
142 'palettes' => [
143 'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
144 ]
145 ];