d2bad6ab4b12d7630d5d7a4b45f3ac8ad39c8345
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility6 / Configuration / TCA / Overrides / tt_content.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
5
6 $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['mailform'] = 'mimetypes-x-content-form';
7 $GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['mailform'] = 'tt_content_form.gif';
8 $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['forms'] = array(
9 'notNewRecords' => 1,
10 'enableByTypeConfig' => 1,
11 'type' => 'script',
12 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.forms',
13 'icon' => 'wizard_forms.gif',
14 'module' => array(
15 'name' => 'wizard_forms',
16 'urlParameters' => array(
17 'special' => 'formtype_mail'
18 )
19 ),
20 'params' => array(
21 'xmlOutput' => 0
22 )
23 );
24
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array(
26 'LLL:EXT:cms/locallang_ttc.xlf:CType.I.8',
27 'mailform',
28 'i/tt_content_form.gif'
29 ),
30 'search',
31 'before'
32 );
33
34 // set up the fields
35 $GLOBALS['TCA']['tt_content']['types']['mailform'] = array(
36 'showitem' => '
37 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
38 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
39 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.mailform_formlabel;;nowrap:wizards[forms],
40 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
41 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
42 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
43 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
44 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
45 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,
46 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.mailform;mailform,
47 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended'
48 );
49 $GLOBALS['TCA']['tt_content']['palettes']['mailform'] = array(
50 'showitem' => 'pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.mailform, --linebreak--, subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader.ALT.mailform_formlabel',
51 'canNotCollapse' => 1
52 );
53 }