[BUGFIX] Allow search for FAL related DB records
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_storage.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'default_sortby' => 'ORDER BY name',
10 'delete' => 'deleted',
11 'rootLevel' => TRUE,
12 'versioningWS_alwaysAllowLiveEdit' => TRUE, // Only have LIVE records of file storages
13 'enablecolumns' => array(
14 'disabled' => 'hidden'
15 ),
16 'dividers2tabs' => TRUE,
17 'requestUpdate' => 'driver',
18 'iconfile' => '_icon_ftp.gif',
19 'searchFields' => 'name,description'
20 ),
21 'interface' => array(
22 'showRecordFieldList' => 'hidden,name,description,driver,processingfolder,configuration'
23 ),
24 'columns' => array(
25 'hidden' => array(
26 'exclude' => 1,
27 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.hidden',
28 'config' => array(
29 'type' => 'check',
30 'default' => '0'
31 )
32 ),
33 'name' => array(
34 'exclude' => 0,
35 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
36 'config' => array(
37 'type' => 'input',
38 'size' => '30',
39 'eval' => 'required'
40 )
41 ),
42 'description' => array(
43 'exclude' => 0,
44 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
45 'config' => array(
46 'type' => 'text',
47 'cols' => '30',
48 'rows' => '5'
49 )
50 ),
51 'is_browsable' => array(
52 'exclude' => 0,
53 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
54 'config' => array(
55 'type' => 'check',
56 'default' => 1
57 )
58 ),
59 'is_default' => array(
60 'exclude' => 0,
61 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
62 'config' => array(
63 'type' => 'check',
64 'default' => 0,
65 'eval' => 'maximumRecordsChecked',
66 'validation' => array(
67 'maximumRecordsChecked' => 1
68 )
69 )
70 ),
71 'is_public' => array(
72 'exclude' => 0,
73 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
74 'config' => array(
75 'type' => 'check',
76 'default' => 1
77 )
78 ),
79 'is_writable' => array(
80 'exclude' => 0,
81 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
82 'config' => array(
83 'type' => 'check',
84 'default' => 1
85 )
86 ),
87 'is_online' => array(
88 'exclude' => 0,
89 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
90 'config' => array(
91 'type' => 'check',
92 'default' => 1
93 )
94 ),
95 'processingfolder' => array(
96 'exclude' => 0,
97 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
98 'config' => array(
99 'type' => 'input',
100 'placeholder' => \TYPO3\CMS\Core\Resource\ResourceStorage::DEFAULT_ProcessingFolder,
101 'size' => '20'
102 )
103 ),
104 'driver' => array(
105 'exclude' => 0,
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
107 'config' => array(
108 'type' => 'select',
109 'items' => array(),
110 'default' => 'Local',
111 'onChange' => 'reload'
112 )
113 ),
114 'configuration' => array(
115 'exclude' => 0,
116 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
117 'config' => array(
118 'type' => 'flex',
119 'ds_pointerField' => 'driver',
120 'ds' => array()
121 ),
122 )
123 ),
124 'types' => array(
125 '0' => array('showitem' => 'name, description, hidden, --div--;Configuration, driver, configuration, is_default, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
126 ),
127 'palettes' => array(
128 'capabilities' => array('showitem' => 'is_browsable, is_public, is_writable', 'canNotCollapse' => TRUE)
129 )
130 );