[!!!][TASK] Improve flex and TCA handling in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_filemounts.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'sortby' => 'sorting',
8 'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
9 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts',
10 'adminOnly' => true,
11 'rootLevel' => 1,
12 'delete' => 'deleted',
13 'enablecolumns' => [
14 'disabled' => 'hidden'
15 ],
16 'typeicon_classes' => [
17 'default' => 'mimetypes-x-sys_filemounts'
18 ],
19 'useColumnsForDefaultValues' => 'path,base',
20 'versioningWS_alwaysAllowLiveEdit' => true,
21 'searchFields' => 'title,path'
22 ],
23 'interface' => [
24 'showRecordFieldList' => 'title,hidden,path,base,description'
25 ],
26 'columns' => [
27 'title' => [
28 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.title',
29 'config' => [
30 'type' => 'input',
31 'size' => 20,
32 'max' => 30,
33 'eval' => 'required,trim'
34 ]
35 ],
36 'hidden' => [
37 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
38 'config' => [
39 'type' => 'check'
40 ]
41 ],
42 'description' => [
43 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
44 'config' => [
45 'type' => 'text',
46 'rows' => 5,
47 'cols' => 30,
48 'max' => '2000',
49 ]
50 ],
51 'base' => [
52 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.baseStorage',
53 'onChange' => 'reload',
54 'config' => [
55 'type' => 'select',
56 'renderType' => 'selectSingle',
57 'foreign_table' => 'sys_file_storage',
58 'allowNonIdValues' => true,
59 'items' => [
60 ['', 0]
61 ],
62 'size' => 1,
63 'maxitems' => 1,
64 'eval' => 'required',
65 'range' => [
66 'lower' => 1,
67 ]
68 ]
69 ],
70 'path' => [
71 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.folder',
72 'displayCond' => 'FIELD:base:>:0',
73 'config' => [
74 'type' => 'select',
75 'renderType' => 'selectSingle',
76 'items' => [],
77 'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
78 ]
79 ],
80 'read_only' => [
81 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.read_only',
82 'config' => [
83 'type' => 'check'
84 ],
85 ],
86 ],
87 'types' => [
88 '0' => ['showitem' => '
89 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
90 title,base, path,read_only,
91 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
92 hidden,
93 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
94 description,
95 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
96 ']
97 ],
98 ];