[BUGFIX] Move TCA modification of indexed_search to TCA/Overrides
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Configuration / TCA / Overrides / tt_content.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 // Register "old" FE plugin and hide layout, select_key and pages fields in BE
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(
8 array('LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search', 'indexed_search'),
9 'list_type',
10 'indexed_search'
11 );
12 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexed_search'] = 'layout,select_key,pages';
13
14 // Registers "new" extbase based FE plugin and hide layout, select_key, pages and recursive fields in BE
15 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
16 'indexed_search',
17 'Pi2',
18 'Indexed Search (experimental)'
19 );
20 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexedsearch_pi2'] = 'layout,select_key,pages,recursive';