-
Notifications
You must be signed in to change notification settings - Fork 7
/
ext_tables.php
36 lines (29 loc) · 1.2 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function()
{
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Typo3Contentblocks.ContentblocksRegApi',
'tools', // Make module a submodule of 'web'
'wizard', // Submodule key
'', // Position
[
\Typo3Contentblocks\ContentblocksRegApi\Backend\Controller\WizardController::class => 'new, create',
],
[
'access' => 'admin',
'icon' => 'EXT:contentblocks_reg_api/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:contentblocks_reg_api/Resources/Private/Language/locallang_db.xlf',
'navigationComponentId' => '',
'inheritNavigationComponentFromMainModule' => false
]
);
/***************
* Allow Custom Records on Standard Pages
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_contentblocks_reg_api_collection');
}
}
);