2 defined('TYPO3_MODE') or die();
4 \TYPO3\CMS\Form\Utility\FormUtility
::getInstance()->initializeFormObjects()->initializePageTsConfig();
6 // Add a for previewing tt_content elements of CType="mailform"
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] = \TYPO3\CMS\Form\Hooks\PageLayoutView\MailformPreviewRenderer
::class;
10 // Add the form CType to the "New Content Element" wizard
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addPageTSConfig('
12 mod.wizards.newContentElement.wizardItems.forms {
14 icon = EXT:frontend/Resources/Public/Icons/ContentElementWizard/mailform.gif
15 title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_title
16 description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_description
17 tt_content_defValues.CType = mailform
19 show :=addToList(mailform)