[FEATURE] Add meta info to the FAL IRRE element header
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_reference.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference',
5 'label' => 'uid',
6 'label_userFunc' => 'EXT:core/Classes/Resource/Service/UserFileInlineLabelService.php:TYPO3\\CMS\\Core\\Resource\\Service\\UserFileInlineLabelService->getInlineLabel',
7 'label_userFunc_options' => array(
8 'sys_file' => array(
9 'title',
10 'name'
11 )
12 ),
13 'tstamp' => 'tstamp',
14 'crdate' => 'crdate',
15 'cruser_id' => 'cruser_id',
16 'type' => 'uid_local:type',
17 'hideTable' => TRUE,
18 'sortby' => 'sorting',
19 'delete' => 'deleted',
20 'versioningWS' => TRUE,
21 'languageField' => 'sys_language_uid',
22 'transOrigPointerField' => 'l10n_parent',
23 'transOrigDiffSourceField' => 'l10n_diffsource',
24 // records can and should be edited in workspaces
25 'shadowColumnsForNewPlaceholders' => 'tablenames,fieldname,uid_local,uid_foreign',
26 'enablecolumns' => array(
27 'disabled' => 'hidden'
28 ),
29 'security' => array(
30 'ignoreWebMountRestriction' => TRUE,
31 'ignoreRootLevelRestriction' => TRUE,
32 ),
33 ),
34 'interface' => array(
35 'showRecordFieldList' => 'hidden,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description'
36 ),
37 'columns' => array(
38 't3ver_label' => array(
39 'exclude' => 0,
40 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
41 'config' => array(
42 'type' => 'input',
43 'size' => '30',
44 'max' => '30'
45 )
46 ),
47 'sys_language_uid' => array(
48 'exclude' => 0,
49 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
50 'config' => array(
51 'type' => 'select',
52 'foreign_table' => 'sys_language',
53 'foreign_table_where' => 'ORDER BY sys_language.title',
54 'items' => array(
55 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
56 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
57 )
58 )
59 ),
60 'l10n_parent' => array(
61 'displayCond' => 'FIELD:sys_language_uid:>:0',
62 'exclude' => 0,
63 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
64 'config' => array(
65 'type' => 'select',
66 'items' => array(
67 array('', 0)
68 ),
69 'foreign_table' => 'sys_file_reference',
70 'foreign_table_where' => 'AND sys_file_reference.uid=###REC_FIELD_l10n_parent### AND sys_file_reference.sys_language_uid IN (-1,0)'
71 )
72 ),
73 'l10n_diffsource' => array(
74 'exclude' => 0,
75 'config' => array(
76 'type' => 'passthrough'
77 )
78 ),
79 'hidden' => array(
80 'exclude' => 0,
81 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
82 'config' => array(
83 'type' => 'check',
84 'default' => '0'
85 )
86 ),
87 'uid_local' => array(
88 'exclude' => 0,
89 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.uid_local',
90 'config' => array(
91 'type' => 'group',
92 'internal_type' => 'db',
93 'size' => 1,
94 'maxitems' => 1,
95 'minitems' => 0,
96 'allowed' => 'sys_file'
97 )
98 ),
99 'uid_foreign' => array(
100 'exclude' => 0,
101 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.uid_foreign',
102 'config' => array(
103 'type' => 'select',
104 'items' => array(
105 array('', 0)
106 ),
107 'foreign_table' => 'tt_content',
108 'foreign_table_where' => 'ORDER BY tt_content.uid',
109 'size' => 1,
110 'minitems' => 0,
111 'maxitems' => 1
112 )
113 ),
114 'tablenames' => array(
115 'exclude' => 0,
116 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.tablenames',
117 'config' => array(
118 'type' => 'input',
119 'size' => '30',
120 'eval' => 'trim'
121 )
122 ),
123 'fieldname' => array(
124 'exclude' => 0,
125 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.fieldname',
126 'config' => array(
127 'type' => 'input',
128 'size' => '30'
129 )
130 ),
131 'sorting_foreign' => array(
132 'exclude' => 0,
133 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.sorting_foreign',
134 'config' => array(
135 'type' => 'input',
136 'size' => '4',
137 'max' => '4',
138 'eval' => 'int',
139 'checkbox' => '0',
140 'range' => array(
141 'upper' => '1000',
142 'lower' => '10'
143 ),
144 'default' => 0
145 )
146 ),
147 'table_local' => array(
148 'exclude' => 0,
149 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.table_local',
150 'config' => array(
151 'type' => 'input',
152 'size' => '20',
153 'default' => 'sys_file'
154 )
155 ),
156 'title' => array(
157 'l10n_mode' => 'mergeIfNotBlank',
158 'exclude' => 0,
159 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.title',
160 'config' => array(
161 'type' => 'input',
162 'eval' => 'null',
163 'size' => '20',
164 'placeholder' => '__row|uid_local|title',
165 )
166 ),
167 'link' => array(
168 'l10n_mode' => 'mergeIfNotBlank',
169 'exclude' => 1,
170 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.link',
171 'config' => array(
172 'type' => 'input',
173 'size' => '20',
174 'wizards' => array(
175 '_PADDING' => 2,
176 'link' => array(
177 'type' => 'popup',
178 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.link',
179 'icon' => 'link_popup.gif',
180 'script' => 'browse_links.php?mode=wizard',
181 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
182 )
183 )
184 )
185 ),
186 'description' => array(
187 // This is used for captions in the frontend
188 'l10n_mode' => 'mergeIfNotBlank',
189 'exclude' => 1,
190 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.description',
191 'config' => array(
192 'type' => 'text',
193 'eval' => 'null',
194 'cols' => '20',
195 'rows' => '5',
196 'placeholder' => '__row|uid_local|description',
197 )
198 ),
199 'alternative' => array(
200 'l10n_mode' => 'mergeIfNotBlank',
201 'exclude' => 1,
202 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.alternative',
203 'config' => array(
204 'type' => 'input',
205 'eval' => 'null',
206 'size' => '20',
207 'placeholder' => '__row|uid_local|alternative',
208 ),
209 ),
210 ),
211 'types' => array(
212 // Note that at the moment we define the same fields for every media type.
213 // We leave the extensive definition of each type here anyway, to make clear that you can use it to differentiate between the types.
214 '0' => array(
215 'showitem' => '
216 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
217 --palette--;;filePalette'
218 ),
219 \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array(
220 'showitem' => '
221 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
222 --palette--;;filePalette'
223 ),
224 \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array(
225 'showitem' => '
226 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
227 --palette--;;filePalette'
228 ),
229 \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array(
230 'showitem' => '
231 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
232 --palette--;;filePalette'
233 ),
234 \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array(
235 'showitem' => '
236 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
237 --palette--;;filePalette'
238 ),
239 \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array(
240 'showitem' => '
241 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
242 --palette--;;filePalette'
243 )
244 ),
245 'palettes' => array(
246 // Used for basic overlays: having a file list etc
247 'basicoverlayPalette' => array(
248 'showitem' => 'title,description',
249 'canNotCollapse' => TRUE
250 ),
251 // Used for everything that is an image (because it has a link and a alternative text)
252 'imageoverlayPalette' => array(
253 'showitem' => '
254 title,alternative;;;;3-3-3,--linebreak--,
255 link,description
256 ',
257 'canNotCollapse' => TRUE
258 ),
259 // File palette, hidden but needs to be included all the time
260 'filePalette' => array(
261 'showitem' => 'uid_local, hidden, sys_language_uid, l10n_parent',
262 'isHiddenPalette' => TRUE
263 )
264 )
265 );
266 ?>