[FEATURE] Add description-field for filemounts
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_filemounts.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'sortby' => 'sorting',
7 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
8 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts',
9 'adminOnly' => 1,
10 'rootLevel' => 1,
11 'delete' => 'deleted',
12 'enablecolumns' => array(
13 'disabled' => 'hidden'
14 ),
15 'iconfile' => '_icon_ftp.gif',
16 'useColumnsForDefaultValues' => 'path,base',
17 'versioningWS_alwaysAllowLiveEdit' => TRUE,
18 'searchFields' => 'title,path'
19 ),
20 'interface' => array(
21 'showRecordFieldList' => 'title,hidden,path,base,description'
22 ),
23 'columns' => array(
24 'title' => array(
25 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.title',
26 'config' => array(
27 'type' => 'input',
28 'size' => '20',
29 'max' => '30',
30 'eval' => 'required,trim'
31 )
32 ),
33 'hidden' => array(
34 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
35 'config' => array(
36 'type' => 'check'
37 )
38 ),
39 'description' => array(
40 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
41 'config' => array(
42 'type' => 'text',
43 'rows' => 5,
44 'cols' => 30,
45 'max' => '2000',
46 )
47 ),
48 'base' => array(
49 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.baseStorage',
50 'config' => array(
51 'type' => 'select',
52 'foreign_table' => 'sys_file_storage',
53 'size' => 1,
54 'maxitems' => 1
55 )
56 ),
57 'path' => array(
58 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.folder',
59 'config' => array(
60 'type' => 'select',
61 'items' => array(),
62 'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
63 )
64 ),
65 'read_only' => array(
66 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.read_only',
67 'config' => array(
68 'type' => 'check'
69 ),
70 ),
71 ),
72 'types' => array(
73 '0' => array('showitem' => '--palette--;;mount, description, base, path, read_only')
74 ),
75 'palettes' => array(
76 'mount' => array('showitem' => 'title,hidden', 'canNotCollapse' => 1)
77 ),
78 );