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