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