[!!!][FEATURE] Streamline Fluid Styled Content and CSS Styled Content
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility7 / Configuration / TCA / Overrides / tt_content.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 $fields = [
5 'select_key' => [
6 'exclude' => true,
7 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.code',
8 'config' => [
9 'type' => 'input',
10 'size' => 50,
11 'max' => 80,
12 'eval' => 'trim'
13 ]
14 ],
15 ];
16
17 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $fields);
18 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'select_key;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:select_key_formlabel', 'list', 'after:list_type');
19
20 // Register "old" FE plugin and hide layout, select_key and pages fields in BE
21 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(
22 [
23 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:mod_indexed_search',
24 'indexed_search'
25 ],
26 'list_type',
27 'indexed_search'
28 );
29 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexed_search'] = 'layout,pages';