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