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