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