TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
core/Configuration/TCA/sys_file_metadata.php
Go to the documentation of this file.
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  'showIconTable' => true,
44  ]
45  ],
46  'l10n_parent' => [
47  'displayCond' => 'FIELD:sys_language_uid:>:0',
48  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
49  'config' => [
50  'type' => 'select',
51  'renderType' => 'selectSingle',
52  'items' => [
53  ['', 0]
54  ],
55  'foreign_table' => 'sys_file_metadata',
56  'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)',
57  'default' => 0
58  ]
59  ],
60  'l10n_diffsource' => [
61  'config' => [
62  'type' => 'passthrough',
63  'default' => ''
64  ]
65  ],
66  't3ver_label' => [
67  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
68  'config' => [
69  'type' => 'input',
70  'size' => 30,
71  'max' => 30
72  ]
73  ],
74  'fileinfo' => [
75  'config' => [
76  'type' => 'user',
77  'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Hook\\FileInfoHook->renderFileMetadataInfo'
78  ]
79  ],
80  'file' => [
81  'displayCond' => 'FIELD:sys_language_uid:=:0',
82  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file',
83  'config' => [
84  'readOnly' => true,
85  'type' => 'select',
86  'renderType' => 'selectSingle',
87  'foreign_table' => 'sys_file',
88  'minitems' => 1,
89  'maxitems' => 1,
90  'size' => 1,
91  'default' => 0,
92  ]
93  ],
94  'title' => [
95  'exclude' => true,
96  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.title',
97  'l10n_mode' => 'prefixLangTitle',
98  'config' => [
99  'type' => 'input',
100  'size' => 30,
101  'placeholder' => '__row|file|name'
102  ]
103  ],
104  'description' => [
105  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.description',
106  'l10n_mode' => 'prefixLangTitle',
107  'config' => [
108  'type' => 'text',
109  'cols' => 40,
110  'rows' => 3
111  ]
112  ],
113  'alternative' => [
114  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.alternative',
115  'config' => [
116  'type' => 'input',
117  'size' => 30,
118  ]
119  ],
120  'width' => [
121  'l10n_mode' => 'exclude'
122  ],
123  'height' => [
124  'l10n_mode' => 'exclude'
125  ]
126  ],
127  'types' => [
128  '1' => ['showitem' => '
129  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
130  fileinfo, title, description, alternative,
131  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
132  --palette--;;language,
133  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
134  categories,
135  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
136  ']
137  ],
138  'palettes' => [
139  'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
140  ]
141 ];