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