[BUGFIX][CONF] Changed default sorting of fe_users in BE
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4
5 if (TYPO3_MODE == 'BE') {
6 t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/');
7 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.xml');
8 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:cms/locallang_csh_webinfo.xml');
9
10 t3lib_extMgm::insertModuleFunction(
11 'web_info',
12 'tx_cms_webinfo_page',
13 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php',
14 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page'
15 );
16 t3lib_extMgm::insertModuleFunction(
17 'web_info',
18 'tx_cms_webinfo_lang',
19 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo_lang.php',
20 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_lang'
21 );
22 }
23
24
25 // Add allowed records to pages:
26 t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
27
28
29 // ******************************************************************
30 // This is the standard TypoScript content table, tt_content
31 // ******************************************************************
32 $TCA['tt_content'] = array (
33 'ctrl' => array (
34 'label' => 'header',
35 'label_alt' => 'subheader,bodytext',
36 'sortby' => 'sorting',
37 'tstamp' => 'tstamp',
38 'crdate' => 'crdate',
39 'cruser_id' => 'cruser_id',
40 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content',
41 'delete' => 'deleted',
42 'versioningWS' => 2,
43 'versioning_followPages' => TRUE,
44 'origUid' => 't3_origuid',
45 'type' => 'CType',
46 'hideAtCopy' => TRUE,
47 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
48 'copyAfterDuplFields' => 'colPos,sys_language_uid',
49 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
50 'shadowColumnsForNewPlaceholders' => 'colPos',
51 'transOrigPointerField' => 'l18n_parent',
52 'transOrigDiffSourceField' => 'l18n_diffsource',
53 'languageField' => 'sys_language_uid',
54 'enablecolumns' => array (
55 'disabled' => 'hidden',
56 'starttime' => 'starttime',
57 'endtime' => 'endtime',
58 'fe_group' => 'fe_group',
59 ),
60 'typeicon_column' => 'CType',
61 'typeicon_classes' => array(
62 'header' => 'mimetypes-x-content-header',
63 'textpic' => 'mimetypes-x-content-text-picture',
64 'image' => 'mimetypes-x-content-image',
65 'bullets' => 'mimetypes-x-content-list-bullets',
66 'table' => 'mimetypes-x-content-table',
67 'splash' => 'mimetypes-x-content-splash',
68 'uploads' => 'mimetypes-x-content-list-files',
69 'multimedia' => 'mimetypes-x-content-multimedia',
70 'media' => 'mimetypes-x-content-multimedia',
71 'menu' => 'mimetypes-x-content-menu',
72 'list' => 'mimetypes-x-content-plugin',
73 'mailform' => 'mimetypes-x-content-form',
74 'search' => 'mimetypes-x-content-form-search',
75 'login' => 'mimetypes-x-content-login',
76 'shortcut' => 'mimetypes-x-content-link',
77 'script' => 'mimetypes-x-content-script',
78 'div' => 'mimetypes-x-content-divider',
79 'html' => 'mimetypes-x-content-html',
80 'text' => 'mimetypes-x-content-text',
81 'default' => 'mimetypes-x-content-text',
82 ),
83 'typeicons' => array (
84 'header' => 'tt_content_header.gif',
85 'textpic' => 'tt_content_textpic.gif',
86 'image' => 'tt_content_image.gif',
87 'bullets' => 'tt_content_bullets.gif',
88 'table' => 'tt_content_table.gif',
89 'splash' => 'tt_content_news.gif',
90 'uploads' => 'tt_content_uploads.gif',
91 'multimedia' => 'tt_content_mm.gif',
92 'media' => 'tt_content_mm.gif',
93 'menu' => 'tt_content_menu.gif',
94 'list' => 'tt_content_list.gif',
95 'mailform' => 'tt_content_form.gif',
96 'search' => 'tt_content_search.gif',
97 'login' => 'tt_content_login.gif',
98 'shortcut' => 'tt_content_shortcut.gif',
99 'script' => 'tt_content_script.gif',
100 'div' => 'tt_content_div.gif',
101 'html' => 'tt_content_html.gif'
102 ),
103 'thumbnail' => 'image',
104 'requestUpdate' => 'list_type,rte_enabled',
105 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php',
106 'dividers2tabs' => 1,
107 'searchFields' => 'header,header_link,subheader,bodytext,pi_flexform',
108 )
109 );
110
111 // ******************************************************************
112 // fe_users
113 // ******************************************************************
114 $TCA['fe_users'] = array (
115 'ctrl' => array (
116 'label' => 'username',
117 'default_sortby' => 'ORDER BY username',
118 'tstamp' => 'tstamp',
119 'crdate' => 'crdate',
120 'cruser_id' => 'cruser_id',
121 'fe_cruser_id' => 'fe_cruser_id',
122 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users',
123 'delete' => 'deleted',
124 'enablecolumns' => array (
125 'disabled' => 'disable',
126 'starttime' => 'starttime',
127 'endtime' => 'endtime'
128 ),
129 'typeicon_classes' => array(
130 'default' => 'status-user-frontend',
131 ),
132 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
133 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
134 'dividers2tabs' => 1,
135 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company',
136 ),
137 'feInterface' => array (
138 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
139 )
140 );
141
142 // ******************************************************************
143 // fe_groups
144 // ******************************************************************
145 $TCA['fe_groups'] = array (
146 'ctrl' => array (
147 'label' => 'title',
148 'tstamp' => 'tstamp',
149 'crdate' => 'crdate',
150 'cruser_id' => 'cruser_id',
151 'delete' => 'deleted',
152 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
153 'enablecolumns' => array (
154 'disabled' => 'hidden'
155 ),
156 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups',
157 'typeicon_classes' => array(
158 'default' => 'status-user-group-frontend',
159 ),
160 'useColumnsForDefaultValues' => 'lockToDomain',
161 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
162 'dividers2tabs' => 1,
163 'searchFields' => 'title,description',
164 )
165 );
166
167 // ******************************************************************
168 // sys_domain
169 // ******************************************************************
170 $TCA['sys_domain'] = array (
171 'ctrl' => array (
172 'label' => 'domainName',
173 'tstamp' => 'tstamp',
174 'crdate' => 'crdate',
175 'cruser_id' => 'cruser_id',
176 'sortby' => 'sorting',
177 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain',
178 'iconfile' => 'domain.gif',
179 'enablecolumns' => array (
180 'disabled' => 'hidden'
181 ),
182 'typeicon_classes' => array(
183 'default' => 'mimetypes-x-content-domain',
184 ),
185 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
186 'searchFields' => 'domainName,redirectTo',
187 )
188 );
189
190 // ******************************************************************
191 // pages_language_overlay
192 // ******************************************************************
193 $TCA['pages_language_overlay'] = array (
194 'ctrl' => array (
195 'label' => 'title',
196 'tstamp' => 'tstamp',
197 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay',
198 'versioningWS' => TRUE,
199 'versioning_followPages' => TRUE,
200 'origUid' => 't3_origuid',
201 'crdate' => 'crdate',
202 'cruser_id' => 'cruser_id',
203 'delete' => 'deleted',
204 'enablecolumns' => array (
205 'disabled' => 'hidden',
206 'starttime' => 'starttime',
207 'endtime' => 'endtime'
208 ),
209 'transOrigPointerField' => 'pid',
210 'transOrigPointerTable' => 'pages',
211 'transOrigDiffSourceField' => 'l18n_diffsource',
212 'shadowColumnsForNewPlaceholders' => 'title',
213 'languageField' => 'sys_language_uid',
214 'mainpalette' => 1,
215 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php',
216 'type' => 'doktype',
217 'typeicon_classes' => array(
218 'default' => 'mimetypes-x-content-page-language-overlay',
219 ),
220 'dividers2tabs' => TRUE,
221 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url',
222 )
223 );
224
225
226 // ******************************************************************
227 // sys_template
228 // ******************************************************************
229 $TCA['sys_template'] = array (
230 'ctrl' => array (
231 'label' => 'title',
232 'tstamp' => 'tstamp',
233 'sortby' => 'sorting',
234 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
235 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template',
236 'versioningWS' => TRUE,
237 'origUid' => 't3_origuid',
238 'crdate' => 'crdate',
239 'cruser_id' => 'cruser_id',
240 'delete' => 'deleted',
241 'adminOnly' => 1, // Only admin, if any
242 'iconfile' => 'template.gif',
243 'thumbnail' => 'resources',
244 'enablecolumns' => array (
245 'disabled' => 'hidden',
246 'starttime' => 'starttime',
247 'endtime' => 'endtime'
248 ),
249 'typeicon_column' => 'root',
250 'typeicon_classes' => array(
251 'default' => 'mimetypes-x-content-template-extension',
252 '1' => 'mimetypes-x-content-template',
253 ),
254 'typeicons' => array (
255 '0' => 'template_add.gif'
256 ),
257 'dividers2tabs' => 1,
258 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
259 'searchFields' => 'title,constants,config',
260 )
261 );
262
263
264 // ******************************************************************
265 // layouts
266 // ******************************************************************
267 $TCA['backend_layout'] = array (
268 'ctrl' => array (
269 'title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout',
270 'label' => 'title',
271 'tstamp' => 'tstamp',
272 'crdate' => 'crdate',
273 'cruser_id' => 'cruser_id',
274 'versioningWS' => TRUE,
275 'origUid' => 't3_origuid',
276 'sortby' => 'sorting',
277 'delete' => 'deleted',
278 'enablecolumns' => array (
279 'disabled' => 'hidden',
280 ),
281 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
282 'iconfile' => 'backend_layout.gif',
283 'selicon_field' => 'icon',
284 'selicon_field_path' => 'uploads/media',
285 'thumbnail' => 'resources',
286 )
287 );
288
289 ?>