50cd2c6aeb679b207aa4e7ecf5300c36aaa5099c
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_metadata.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/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' => array(
19 'default' => 'mimetypes-other-other'
20 ),
21 'security' => array(
22 'ignoreWebMountRestriction' => true,
23 'ignoreRootLevelRestriction' => true,
24 ),
25 'searchFields' => 'file,title,description,alternative'
26 ),
27 'interface' => array(
28 'showRecordFieldList' => 'file, title, description, alternative'
29 ),
30 'columns' => array(
31 'sys_language_uid' => array(
32 'exclude' => 0,
33 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
34 'config' => array(
35 'type' => 'select',
36 'renderType' => 'selectSingle',
37 'foreign_table' => 'sys_language',
38 'foreign_table_where' => 'ORDER BY sys_language.title',
39 'items' => array(
40 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
41 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
42 ),
43 'default' => 0,
44 'showIconTable' => true,
45 )
46 ),
47 'l10n_parent' => array(
48 'displayCond' => 'FIELD:sys_language_uid:>:0',
49 'exclude' => 0,
50 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
51 'config' => array(
52 'type' => 'select',
53 'renderType' => 'selectSingle',
54 'items' => array(
55 array('', 0)
56 ),
57 'foreign_table' => 'sys_file_metadata',
58 'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)',
59 'default' => 0
60 )
61 ),
62 'l10n_diffsource' => array(
63 'exclude' => 0,
64 'config' => array(
65 'type' => 'passthrough',
66 'default' => ''
67 )
68 ),
69 't3ver_label' => array(
70 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
71 'config' => array(
72 'type' => 'input',
73 'size' => '30',
74 'max' => '30'
75 )
76 ),
77 'fileinfo' => array(
78 'config' => array(
79 'type' => 'user',
80 'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Hook\\FileInfoHook->renderFileMetadataInfo'
81 )
82 ),
83 'file' => array(
84 'displayCond' => 'FIELD:sys_language_uid:=:0',
85 'exclude' => 0,
86 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
87 'config' => array(
88 'readOnly' => 1,
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' => array(
99 'exclude' => 1,
100 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.title',
101 'l10n_mode' => 'prefixLangTitle',
102 'config' => array(
103 'type' => 'input',
104 'size' => '30',
105 'placeholder' => '__row|file|name'
106 )
107 ),
108 'description' => array(
109 'exclude' => 0,
110 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.description',
111 'l10n_mode' => 'prefixLangTitle',
112 'config' => array(
113 'type' => 'text',
114 'cols' => '40',
115 'rows' => '3'
116 )
117 ),
118 'alternative' => array(
119 'exclude' => 0,
120 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.alternative',
121 'config' => array(
122 'type' => 'input',
123 'size' => '30',
124 )
125 ),
126 'width' => array(
127 'exclude' => 0,
128 'l10n_mode' => 'exclude'
129 ),
130 'height' => array(
131 'exclude' => 0,
132 'l10n_mode' => 'exclude'
133 )
134 ),
135 'types' => array(
136 '1' => array('showitem' => 'fileinfo, title, description, alternative')
137 ),
138 'palettes' => array()
139 );