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