‪TYPO3CMS  9.5
sys_filemounts.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'label' => 'title',
5  'descriptionColumn' => 'description',
6  'tstamp' => 'tstamp',
7  'sortby' => 'sorting',
8  'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
9  'title' => 'LLL:EXT:core/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:core/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.title',
29  'config' => [
30  'type' => 'input',
31  'size' => 50,
32  'max' => 255,
33  'eval' => 'required,trim'
34  ]
35  ],
36  'hidden' => [
37  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
38  'config' => [
39  'type' => 'check',
40  'renderType' => 'checkboxToggle',
41  'items' => [
42  [
43  0 => '',
44  1 => '',
45  'invertStateDisplay' => true
46  ]
47  ],
48  ]
49  ],
50  'description' => [
51  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
52  'config' => [
53  'type' => 'text',
54  'rows' => 5,
55  'cols' => 30,
56  'max' => 2000
57  ]
58  ],
59  'base' => [
60  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.baseStorage',
61  'onChange' => 'reload',
62  'config' => [
63  'type' => 'select',
64  'renderType' => 'selectSingle',
65  'foreign_table' => 'sys_file_storage',
66  'allowNonIdValues' => true,
67  'items' => [
68  ['', 0]
69  ],
70  'size' => 1,
71  'maxitems' => 1,
72  'eval' => 'required',
73  'range' => [
74  'lower' => 1,
75  ]
76  ]
77  ],
78  'path' => [
79  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.folder',
80  'displayCond' => 'FIELD:base:>:0',
81  'config' => [
82  'type' => 'select',
83  'renderType' => 'selectSingle',
84  'items' => [],
85  'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
86  ]
87  ],
88  'read_only' => [
89  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.read_only',
90  'config' => [
91  'type' => 'check',
92  'renderType' => 'checkboxToggle',
93  'items' => [
94  [
95  0 => '',
96  1 => '',
97  ]
98  ],
99  ]
100  ],
101  ],
102  'types' => [
103  '0' => ['showitem' => '
104  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
105  title,base, path,read_only,
106  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
107  hidden,
108  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
109  description,
110  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
111  ']
112  ],
113 ];