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