2 defined(
'TYPO3_MODE') or die();
5 $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['mailform'] = 'mimetypes-x-content-form';
10 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.8',
12 'content-elements-mailform'
19 if ($item[0] ===
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms') {
31 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
32 array(
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms',
'--div--')
34 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
$additionalCTypeItem);
37 $GLOBALS[
'TCA'][
'tt_content'][
'columns'][
'bodytext'][
'config'][
'wizards'][
'forms'] = array(
39 'enableByTypeConfig' => 1,
41 'title' =>
'Form wizard',
42 'icon' =>
'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif',
44 'name' =>
'wizard_form'
52 if (!isset(
$GLOBALS[
'TCA'][
'tt_content'][
'palettes'][
'visibility'])) {
53 $GLOBALS[
'TCA'][
'tt_content'][
'palettes'][
'visibility'] = array(
55 hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:hidden_formlabel,
56 sectionIndex;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:sectionIndex_formlabel,
57 linkToTop;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:linkToTop_formlabel
62 if (!isset(
$GLOBALS[
'TCA'][
'tt_content'][
'palettes'][
'frames'])) {
63 $GLOBALS[
'TCA'][
'tt_content'][
'palettes'][
'frames'] = array(
65 layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:layout_formlabel
70 $GLOBALS[
'TCA'][
'tt_content'][
'types'][
'mailform'][
'showitem'] =
'
71 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
72 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,rowDescription,
73 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.8,
74 bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.mailform,
75 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
76 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
77 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
78 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
79 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
81 if (!is_array(
$GLOBALS[
'TCA'][
'tt_content'][
'types'][
'mailform'][
'columnsOverrides'])) {
82 $GLOBALS[
'TCA'][
'tt_content'][
'types'][
'mailform'][
'columnsOverrides'] = array();
84 if (!is_array(
$GLOBALS[
'TCA'][
'tt_content'][
'types'][
'mailform'][
'columnsOverrides'][
'bodytext'])) {
85 $GLOBALS[
'TCA'][
'tt_content'][
'types'][
'mailform'][
'columnsOverrides'][
'bodytext'] = array();
88 if (!empty(
$GLOBALS[
'TCA'][
'tt_content'][
'columns'][
'bodytext'][
'defaultExtras'])) {