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