TYPO3  7.6
indexed_search/Configuration/TCA/Overrides/tt_content.php
Go to the documentation of this file.
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  'TYPO3.CMS.IndexedSearch',
15  'Pi2',
16  'Indexed Search (Extbase & Fluid based)'
17 );
18 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexedsearch_pi2'] = 'layout,select_key,pages,recursive';