@@ -7,109 +7,109 @@ |
||
7 | 7 | if (!defined('TYPO3')) die ('Access denied.'); |
8 | 8 | |
9 | 9 | $tca = [ |
10 | - 'ctrl' => [ |
|
11 | - // By default "searchFields" has many fields which has a performance cost when dealing with large data-set. |
|
12 | - // Override search field for performance reason. |
|
13 | - // To restore default values, just replace with this: $GLOBALS['TCA']['fe_users']['ctrl']['searchFields'] . ',usergroup', |
|
14 | - 'searchFields' => 'username, first_name, last_name, usergroup', |
|
15 | - ], |
|
16 | - 'vidi' => [ |
|
17 | - // Special case when the field name does not follow the conventions. |
|
18 | - // Vidi needs a bit of help to find the equivalence fieldName <-> propertyName. |
|
19 | - 'mappings' => [ |
|
20 | - 'lockToDomain' => 'lockToDomain', |
|
21 | - 'TSconfig' => 'tsConfig', |
|
22 | - 'felogin_redirectPid' => 'feLoginRedirectPid', |
|
23 | - 'felogin_forgotHash' => 'feLoginForgotHash', |
|
24 | - ], |
|
25 | - ], |
|
26 | - 'grid' => [ |
|
27 | - 'excluded_fields' => 'lockToDomain, TSconfig, felogin_redirectPid, felogin_forgotHash, auth_token, image', |
|
28 | - 'export' => [ |
|
29 | - 'include_files' => false, |
|
30 | - ], |
|
31 | - 'facets' => [ |
|
32 | - 'uid', |
|
33 | - 'username', |
|
34 | - 'name', |
|
35 | - 'first_name', |
|
36 | - 'last_name', |
|
37 | - 'address', |
|
38 | - 'telephone', |
|
39 | - 'fax', |
|
40 | - 'email', |
|
41 | - 'title', |
|
42 | - 'zip', |
|
43 | - 'city', |
|
44 | - 'country', |
|
45 | - 'company', |
|
46 | - 'usergroup', |
|
47 | - StandardFacet::class => [ |
|
48 | - 'name' => 'disable', |
|
49 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active', |
|
50 | - 'suggestions' => [ |
|
51 | - '0' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active.0', |
|
52 | - '1' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active.1' |
|
53 | - ] |
|
54 | - ], |
|
55 | - PageFacet::class => [ |
|
56 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:facet.pid' |
|
57 | - ], |
|
58 | - ], |
|
59 | - 'columns' => [ |
|
60 | - '__checkbox' => [ |
|
61 | - 'renderer' => CheckBoxRenderer::class, |
|
62 | - ], |
|
63 | - 'uid' => [ |
|
64 | - 'visible' => false, |
|
65 | - 'label' => 'Id', |
|
66 | - 'width' => '5px', |
|
67 | - ], |
|
68 | - 'username' => [ |
|
69 | - 'visible' => true, |
|
70 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:username', |
|
71 | - 'editable' => true, |
|
72 | - ], |
|
73 | - 'name' => [ |
|
74 | - 'visible' => true, |
|
75 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:name', |
|
76 | - 'editable' => true, |
|
77 | - ], |
|
78 | - 'email' => [ |
|
79 | - 'visible' => true, |
|
80 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:email', |
|
81 | - 'editable' => true, |
|
82 | - ], |
|
83 | - 'usergroup' => [ |
|
84 | - 'visible' => true, |
|
85 | - 'renderers' => [ |
|
86 | - 'Fab\Vidi\Grid\RelationEditRenderer', |
|
87 | - 'Fab\Vidi\Grid\RelationRenderer', |
|
88 | - ], |
|
89 | - 'editable' => true, |
|
90 | - 'sortable' => false, |
|
91 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:usergroup', |
|
92 | - ], |
|
93 | - 'tstamp' => [ |
|
94 | - 'visible' => false, |
|
95 | - 'format' => 'Fab\Vidi\Formatter\Date', |
|
96 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:tstamp', |
|
97 | - ], |
|
98 | - 'crdate' => [ |
|
99 | - 'visible' => false, |
|
100 | - 'format' => 'Fab\Vidi\Formatter\Date', |
|
101 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:crdate', |
|
102 | - ], |
|
103 | - 'disable' => [ |
|
104 | - 'renderer' => 'Fab\Vidi\Grid\VisibilityRenderer', |
|
105 | - 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active', |
|
106 | - 'width' => '3%', |
|
107 | - ], |
|
108 | - '__buttons' => [ |
|
109 | - 'renderer' => ButtonGroupRenderer::class, |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
10 | + 'ctrl' => [ |
|
11 | + // By default "searchFields" has many fields which has a performance cost when dealing with large data-set. |
|
12 | + // Override search field for performance reason. |
|
13 | + // To restore default values, just replace with this: $GLOBALS['TCA']['fe_users']['ctrl']['searchFields'] . ',usergroup', |
|
14 | + 'searchFields' => 'username, first_name, last_name, usergroup', |
|
15 | + ], |
|
16 | + 'vidi' => [ |
|
17 | + // Special case when the field name does not follow the conventions. |
|
18 | + // Vidi needs a bit of help to find the equivalence fieldName <-> propertyName. |
|
19 | + 'mappings' => [ |
|
20 | + 'lockToDomain' => 'lockToDomain', |
|
21 | + 'TSconfig' => 'tsConfig', |
|
22 | + 'felogin_redirectPid' => 'feLoginRedirectPid', |
|
23 | + 'felogin_forgotHash' => 'feLoginForgotHash', |
|
24 | + ], |
|
25 | + ], |
|
26 | + 'grid' => [ |
|
27 | + 'excluded_fields' => 'lockToDomain, TSconfig, felogin_redirectPid, felogin_forgotHash, auth_token, image', |
|
28 | + 'export' => [ |
|
29 | + 'include_files' => false, |
|
30 | + ], |
|
31 | + 'facets' => [ |
|
32 | + 'uid', |
|
33 | + 'username', |
|
34 | + 'name', |
|
35 | + 'first_name', |
|
36 | + 'last_name', |
|
37 | + 'address', |
|
38 | + 'telephone', |
|
39 | + 'fax', |
|
40 | + 'email', |
|
41 | + 'title', |
|
42 | + 'zip', |
|
43 | + 'city', |
|
44 | + 'country', |
|
45 | + 'company', |
|
46 | + 'usergroup', |
|
47 | + StandardFacet::class => [ |
|
48 | + 'name' => 'disable', |
|
49 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active', |
|
50 | + 'suggestions' => [ |
|
51 | + '0' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active.0', |
|
52 | + '1' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active.1' |
|
53 | + ] |
|
54 | + ], |
|
55 | + PageFacet::class => [ |
|
56 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:facet.pid' |
|
57 | + ], |
|
58 | + ], |
|
59 | + 'columns' => [ |
|
60 | + '__checkbox' => [ |
|
61 | + 'renderer' => CheckBoxRenderer::class, |
|
62 | + ], |
|
63 | + 'uid' => [ |
|
64 | + 'visible' => false, |
|
65 | + 'label' => 'Id', |
|
66 | + 'width' => '5px', |
|
67 | + ], |
|
68 | + 'username' => [ |
|
69 | + 'visible' => true, |
|
70 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:username', |
|
71 | + 'editable' => true, |
|
72 | + ], |
|
73 | + 'name' => [ |
|
74 | + 'visible' => true, |
|
75 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:name', |
|
76 | + 'editable' => true, |
|
77 | + ], |
|
78 | + 'email' => [ |
|
79 | + 'visible' => true, |
|
80 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:email', |
|
81 | + 'editable' => true, |
|
82 | + ], |
|
83 | + 'usergroup' => [ |
|
84 | + 'visible' => true, |
|
85 | + 'renderers' => [ |
|
86 | + 'Fab\Vidi\Grid\RelationEditRenderer', |
|
87 | + 'Fab\Vidi\Grid\RelationRenderer', |
|
88 | + ], |
|
89 | + 'editable' => true, |
|
90 | + 'sortable' => false, |
|
91 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/fe_users.xlf:usergroup', |
|
92 | + ], |
|
93 | + 'tstamp' => [ |
|
94 | + 'visible' => false, |
|
95 | + 'format' => 'Fab\Vidi\Formatter\Date', |
|
96 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:tstamp', |
|
97 | + ], |
|
98 | + 'crdate' => [ |
|
99 | + 'visible' => false, |
|
100 | + 'format' => 'Fab\Vidi\Formatter\Date', |
|
101 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:crdate', |
|
102 | + ], |
|
103 | + 'disable' => [ |
|
104 | + 'renderer' => 'Fab\Vidi\Grid\VisibilityRenderer', |
|
105 | + 'label' => 'LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:active', |
|
106 | + 'width' => '3%', |
|
107 | + ], |
|
108 | + '__buttons' => [ |
|
109 | + 'renderer' => ButtonGroupRenderer::class, |
|
110 | + ], |
|
111 | + ], |
|
112 | + ], |
|
113 | 113 | ]; |
114 | 114 | |
115 | 115 | ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA']['fe_users'], $tca); |