Revert "[!!!][TASK] Get rid of loadTCA and simplify FE cache behavior"
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 // Add Default TS to Include static (from extensions)
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', 'Default TS');
8
9 // Load TCA before manipulating the column configuration
10 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
11
12 $TCA['tt_content']['columns']['bodytext']['config']['wizards']['forms'] = array(
13 'notNewRecords' => 1,
14 'enableByTypeConfig' => 1,
15 'type' => 'script',
16 'title' => 'Form wizard',
17 'icon' => 'wizard_forms.gif',
18 'script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('form') . 'Classes/Controller/Wizard.php',
19 'params' => array(
20 'xmlOutput' => 0
21 )
22 );
23 $TCA['tt_content']['types']['mailform']['showitem'] = '
24 CType;;4;;1-1-1,
25 hidden,
26 header;;3;;2-2-2,
27 linkToTop;;;;3-3-3,
28 --div--;LLL:EXT:cms/locallang_ttc.xml:CType.I.8,
29 bodytext;LLL:EXT:cms/locallang_ttc.php:bodytext.ALT.mailform;;nowrap:wizards[forms];3-3-3,
30 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
31 starttime,
32 endtime,
33 fe_group
34 ';
35 ?>