[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / fe_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'default_sortby' => 'ORDER BY username',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users',
10 'delete' => 'deleted',
11 'enablecolumns' => array(
12 'disabled' => 'disable',
13 'starttime' => 'starttime',
14 'endtime' => 'endtime'
15 ),
16 'typeicon_classes' => array(
17 'default' => 'status-user-frontend'
18 ),
19 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
20 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company'
21 ),
22 'interface' => array(
23 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
24 ),
25 'columns' => array(
26 'username' => array(
27 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.username',
28 'config' => array(
29 'type' => 'input',
30 'size' => 20,
31 'max' => 255,
32 'eval' => 'nospace,trim,lower,uniqueInPid,required',
33 'autocomplete' => false,
34 )
35 ),
36 'password' => array(
37 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.password',
38 'config' => array(
39 'type' => 'input',
40 'size' => 10,
41 'max' => 40,
42 'eval' => 'trim,required,password',
43 'autocomplete' => false,
44 )
45 ),
46 'usergroup' => array(
47 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.usergroup',
48 'config' => array(
49 'type' => 'select',
50 'renderType' => 'selectMultipleSideBySide',
51 'foreign_table' => 'fe_groups',
52 'foreign_table_where' => 'ORDER BY fe_groups.title',
53 'enableMultiSelectFilterTextfield' => true,
54 'size' => 6,
55 'minitems' => 1,
56 'maxitems' => 50
57 )
58 ),
59 'lockToDomain' => array(
60 'exclude' => true,
61 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.lockToDomain',
62 'config' => array(
63 'type' => 'input',
64 'size' => 20,
65 'eval' => 'trim',
66 'max' => 50,
67 'softref' => 'substitute'
68 )
69 ),
70 'name' => array(
71 'exclude' => true,
72 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
73 'config' => array(
74 'type' => 'input',
75 'size' => 40,
76 'eval' => 'trim',
77 'max' => 160
78 )
79 ),
80 'first_name' => array(
81 'exclude' => true,
82 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.first_name',
83 'config' => array(
84 'type' => 'input',
85 'size' => 25,
86 'eval' => 'trim',
87 'max' => 50
88 )
89 ),
90 'middle_name' => array(
91 'exclude' => true,
92 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.middle_name',
93 'config' => array(
94 'type' => 'input',
95 'size' => 25,
96 'eval' => 'trim',
97 'max' => 50
98 )
99 ),
100 'last_name' => array(
101 'exclude' => true,
102 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.last_name',
103 'config' => array(
104 'type' => 'input',
105 'size' => 25,
106 'eval' => 'trim',
107 'max' => 50
108 )
109 ),
110 'address' => array(
111 'exclude' => true,
112 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.address',
113 'config' => array(
114 'type' => 'text',
115 'cols' => 20,
116 'rows' => 3
117 )
118 ),
119 'telephone' => array(
120 'exclude' => true,
121 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.phone',
122 'config' => array(
123 'type' => 'input',
124 'eval' => 'trim',
125 'size' => 20,
126 'max' => 30
127 )
128 ),
129 'fax' => array(
130 'exclude' => true,
131 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fax',
132 'config' => array(
133 'type' => 'input',
134 'size' => 20,
135 'eval' => 'trim',
136 'max' => 30
137 )
138 ),
139 'email' => array(
140 'exclude' => true,
141 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
142 'config' => array(
143 'type' => 'input',
144 'size' => 20,
145 'eval' => 'trim',
146 'max' => 255
147 )
148 ),
149 'title' => array(
150 'exclude' => true,
151 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title_person',
152 'config' => array(
153 'type' => 'input',
154 'size' => 20,
155 'eval' => 'trim',
156 'max' => '40'
157 )
158 ),
159 'zip' => array(
160 'exclude' => true,
161 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.zip',
162 'config' => array(
163 'type' => 'input',
164 'eval' => 'trim',
165 'size' => 10,
166 'max' => '10'
167 )
168 ),
169 'city' => array(
170 'exclude' => true,
171 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.city',
172 'config' => array(
173 'type' => 'input',
174 'size' => 20,
175 'eval' => 'trim',
176 'max' => 50
177 )
178 ),
179 'country' => array(
180 'exclude' => true,
181 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.country',
182 'config' => array(
183 'type' => 'input',
184 'size' => 20,
185 'eval' => 'trim',
186 'max' => 40
187 )
188 ),
189 'www' => array(
190 'exclude' => true,
191 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.www',
192 'config' => array(
193 'type' => 'input',
194 'eval' => 'trim',
195 'size' => 20,
196 'max' => 80
197 )
198 ),
199 'company' => array(
200 'exclude' => true,
201 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.company',
202 'config' => array(
203 'type' => 'input',
204 'eval' => 'trim',
205 'size' => 20,
206 'max' => 80
207 )
208 ),
209 'image' => array(
210 'exclude' => true,
211 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.image',
212 'config' => array(
213 'type' => 'group',
214 'internal_type' => 'file',
215 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
216 'uploadfolder' => 'uploads/pics',
217 'show_thumbs' => true,
218 'size' => 3,
219 'maxitems' => 6,
220 'minitems' => 0
221 )
222 ),
223 'disable' => array(
224 'exclude' => true,
225 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
226 'config' => array(
227 'type' => 'check'
228 )
229 ),
230 'starttime' => array(
231 'exclude' => true,
232 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
233 'config' => array(
234 'type' => 'input',
235 'size' => 13,
236 'eval' => 'datetime',
237 'default' => 0
238 )
239 ),
240 'endtime' => array(
241 'exclude' => true,
242 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
243 'config' => array(
244 'type' => 'input',
245 'size' => 13,
246 'eval' => 'datetime',
247 'default' => 0,
248 'range' => array(
249 'upper' => mktime(0, 0, 0, 12, 31, 2020)
250 )
251 )
252 ),
253 'TSconfig' => array(
254 'exclude' => true,
255 'label' => 'TSconfig:',
256 'config' => array(
257 'type' => 'text',
258 'cols' => 40,
259 'rows' => 10
260 ),
261 'defaultExtras' => 'fixed-font : enable-tab'
262 ),
263 'lastlogin' => array(
264 'exclude' => true,
265 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
266 'config' => array(
267 'type' => 'input',
268 'readOnly' => true,
269 'size' => 12,
270 'eval' => 'datetime',
271 'default' => 0
272 )
273 )
274 ),
275 'types' => array(
276 '0' => array(
277 'showitem' => '
278 disable, username, password, usergroup, lastlogin,
279 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.personelData, company, --palette--;;1, name, --palette--;;2, address, zip, city, country, telephone, fax, email, www, image,
280 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.options, lockToDomain, TSconfig,
281 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.access, starttime, endtime,
282 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.extended
283 ',
284 ),
285 ),
286 'palettes' => array(
287 '1' => array('showitem' => 'title'),
288 '2' => array('showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name')
289 )
290 );