-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
49 lines (44 loc) · 1.26 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
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
// Create a module section
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'datalisting',
'',
'',
'',
[
'access' => 'user,group',
'name' => 'datalisting',
'iconIdentifier' => 'modulegroup-datalisting',
'labels' => 'LLL:EXT:module_data_listing/Resources/Private/Language/locallang_mod_datalisting.xlf',
]
);
// Display our custom module sections underneath the Web section
$temp_TBE_MODULES = [];
foreach ($GLOBALS['TBE_MODULES'] as $key => $val) {
if ($key === 'web') {
$temp_TBE_MODULES[$key] = $val;
$temp_TBE_MODULES['datalisting'] = '';
} else {
$temp_TBE_MODULES[$key] = $val;
}
}
$GLOBALS['TBE_MODULES'] = $temp_TBE_MODULES;
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'LiquidLight.ModuleDataListing',
'datalisting',
'tx_module_data_listing_feusers',
'bottom',
[
\LiquidLight\ModuleDataListing\Controller\FeUsersController::class => 'index',
],
[
'access' => 'user,group',
'iconIdentifier' => 'module-listing-users',
'labels' => 'LLL:EXT:module_data_listing/Resources/Private/Language/locallang_feusers.xlf',
'navigationComponentId' => '',
'inheritNavigationComponentFromMainModule' => false,
]
);
}