[TASK][!!!] Improve Backend search
[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 'tstamp' => 'tstamp',
118 'crdate' => 'crdate',
119 'cruser_id' => 'cruser_id',
120 'fe_cruser_id' => 'fe_cruser_id',
121 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users',
122 'delete' => 'deleted',
123 'enablecolumns' => array (
124 'disabled' => 'disable',
125 'starttime' => 'starttime',
126 'endtime' => 'endtime'
127 ),
128 'typeicon_classes' => array(
129 'default' => 'status-user-frontend',
130 ),
131 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
132 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
133 'dividers2tabs' => 1,
134 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company',
135 ),
136 'feInterface' => array (
137 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
138 )
139 );
140
141 // ******************************************************************
142 // fe_groups
143 // ******************************************************************
144 $TCA['fe_groups'] = array (
145 'ctrl' => array (
146 'label' => 'title',
147 'tstamp' => 'tstamp',
148 'crdate' => 'crdate',
149 'cruser_id' => 'cruser_id',
150 'delete' => 'deleted',
151 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
152 'enablecolumns' => array (
153 'disabled' => 'hidden'
154 ),
155 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups',
156 'typeicon_classes' => array(
157 'default' => 'status-user-group-frontend',
158 ),
159 'useColumnsForDefaultValues' => 'lockToDomain',
160 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
161 'dividers2tabs' => 1,
162 'searchFields' => 'title,description',
163 )
164 );
165
166 // ******************************************************************
167 // sys_domain
168 // ******************************************************************
169 $TCA['sys_domain'] = array (
170 'ctrl' => array (
171 'label' => 'domainName',
172 'tstamp' => 'tstamp',
173 'crdate' => 'crdate',
174 'cruser_id' => 'cruser_id',
175 'sortby' => 'sorting',
176 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain',
177 'iconfile' => 'domain.gif',
178 'enablecolumns' => array (
179 'disabled' => 'hidden'
180 ),
181 'typeicon_classes' => array(
182 'default' => 'mimetypes-x-content-domain',
183 ),
184 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
185 'searchFields' => 'domainName,redirectTo',
186 )
187 );
188
189 // ******************************************************************
190 // pages_language_overlay
191 // ******************************************************************
192 $TCA['pages_language_overlay'] = array (
193 'ctrl' => array (
194 'label' => 'title',
195 'tstamp' => 'tstamp',
196 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay',
197 'versioningWS' => TRUE,
198 'versioning_followPages' => TRUE,
199 'origUid' => 't3_origuid',
200 'crdate' => 'crdate',
201 'cruser_id' => 'cruser_id',
202 'delete' => 'deleted',
203 'enablecolumns' => array (
204 'disabled' => 'hidden',
205 'starttime' => 'starttime',
206 'endtime' => 'endtime'
207 ),
208 'transOrigPointerField' => 'pid',
209 'transOrigPointerTable' => 'pages',
210 'transOrigDiffSourceField' => 'l18n_diffsource',
211 'shadowColumnsForNewPlaceholders' => 'title',
212 'languageField' => 'sys_language_uid',
213 'mainpalette' => 1,
214 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php',
215 'type' => 'doktype',
216 'typeicon_classes' => array(
217 'default' => 'mimetypes-x-content-page-language-overlay',
218 ),
219 'dividers2tabs' => TRUE,
220 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url',
221 )
222 );
223
224
225 // ******************************************************************
226 // sys_template
227 // ******************************************************************
228 $TCA['sys_template'] = array (
229 'ctrl' => array (
230 'label' => 'title',
231 'tstamp' => 'tstamp',
232 'sortby' => 'sorting',
233 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
234 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template',
235 'versioningWS' => TRUE,
236 'origUid' => 't3_origuid',
237 'crdate' => 'crdate',
238 'cruser_id' => 'cruser_id',
239 'delete' => 'deleted',
240 'adminOnly' => 1, // Only admin, if any
241 'iconfile' => 'template.gif',
242 'thumbnail' => 'resources',
243 'enablecolumns' => array (
244 'disabled' => 'hidden',
245 'starttime' => 'starttime',
246 'endtime' => 'endtime'
247 ),
248 'typeicon_column' => 'root',
249 'typeicon_classes' => array(
250 'default' => 'mimetypes-x-content-template-extension',
251 '1' => 'mimetypes-x-content-template',
252 ),
253 'typeicons' => array (
254 '0' => 'template_add.gif'
255 ),
256 'dividers2tabs' => 1,
257 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
258 'searchFields' => 'title,constants,config',
259 )
260 );
261
262
263 // ******************************************************************
264 // layouts
265 // ******************************************************************
266 $TCA['backend_layout'] = array (
267 'ctrl' => array (
268 'title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout',
269 'label' => 'title',
270 'tstamp' => 'tstamp',
271 'crdate' => 'crdate',
272 'cruser_id' => 'cruser_id',
273 'versioningWS' => TRUE,
274 'origUid' => 't3_origuid',
275 'sortby' => 'sorting',
276 'delete' => 'deleted',
277 'enablecolumns' => array (
278 'disabled' => 'hidden',
279 ),
280 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
281 'iconfile' => 'backend_layout.gif',
282 'selicon_field' => 'icon',
283 'selicon_field_path' => 'uploads/media',
284 'thumbnail' => 'resources',
285 )
286 );
287
288 ?>