forked from teaminmedias-pluswerk/ke_search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
50 lines (44 loc) · 1.76 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// add help file
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_kesearch_filters',
'EXT:ke_search/locallang_csh.xml'
);
// Configure FlexForm field
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$_EXTKEY . '_pi1',
'FILE:EXT:ke_search/Configuration/FlexForms/flexform_searchbox.xml'
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$_EXTKEY . '_pi2',
'FILE:EXT:ke_search/Configuration/FlexForms/flexform_resultlist.xml'
);
// add module
if (TYPO3_MODE == 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'TeaminmediasPluswerk.' . $_EXTKEY,
'web', // Main area
'backend_module', // Name of the module
'', // Position of the module
array( // Allowed controller action combinations
'BackendModule' =>
'startIndexing,indexedContent,indexTableInformation,'
. 'searchwordStatistics,clearSearchIndex,lastIndexingReport,alert',
),
array( // Additional configuration
'access' => 'user,group',
'icon' => 'EXT:ke_search/Resources/Public/Icons/moduleicon.svg',
'labels' => 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml',
)
);
}
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-kesearch-wizard-icon',
'TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider',
['source' => 'EXT:ke_search/Resources/Public/Icons/moduleicon.svg']
);