[BUGFIX] IndexedSearch: Fix various issues in extbase plugin
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Indexed Search (experimental)');
5
6 if (TYPO3_MODE === 'BE') {
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
8 'tools',
9 'isearch',
10 'after:log',
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/'
12 );
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
14 'web_info',
15 \TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController::class,
16 NULL,
17 'LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search'
18 );
19 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
20 'web_info',
21 \TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::class,
22 NULL,
23 'LLL:EXT:indexed_search/locallang.xlf:mod2_indexed_search'
24 );
25
26 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
27 'TYPO3.CMS.IndexedSearch',
28 'web',
29 'isearch',
30 '',
31 array(
32 'Administration' => 'index,pages,externalDocuments,statistic,statisticDetails,deleteIndexedItem,saveStopwordsKeywords,wordDetail',
33 ),
34 array(
35 'access' => 'admin',
36 'icon' => 'EXT:indexed_search/Resources/Public/Icons/module-indexed_search.png',
37 'labels' => 'LLL:EXT:indexed_search/mod/locallang_mod.xlf',
38 )
39 );
40 }
41
42
43 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'IndexedSearch');
44
45 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('index_config');
46 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xlf');