TYPO3 CMS  TYPO3_7-6
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:lang/locallang_general.xlf:LGL.prependAtCopy',
9  'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts',
10  'adminOnly' => 1,
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/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/locallang_general.xlf:LGL.disable',
38  'config' => [
39  'type' => 'check'
40  ]
41  ],
42  'description' => [
43  'label' => 'LLL:EXT:lang/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/locallang_general.xlf:LGL.baseStorage',
53  'config' => [
54  'type' => 'select',
55  'renderType' => 'selectSingle',
56  'foreign_table' => 'sys_file_storage',
57  'size' => 1,
58  'maxitems' => 1
59  ]
60  ],
61  'path' => [
62  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.folder',
63  'config' => [
64  'type' => 'select',
65  'renderType' => 'selectSingle',
66  'items' => [],
67  'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
68  ]
69  ],
70  'read_only' => [
71  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.read_only',
72  'config' => [
73  'type' => 'check'
74  ],
75  ],
76  ],
77  'types' => [
78  '0' => ['showitem' => '--palette--;;mount, description, base, path, read_only']
79  ],
80  'palettes' => [
81  'mount' => [
82  'showitem' => 'title,hidden',
83  ],
84  ],
85 ];