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