-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathext_tables.php
34 lines (30 loc) · 1.46 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
<?php
defined('TYPO3') || die('Access denied.');
call_user_func(
static function () {
$contentBlocksSettings = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get('contentblocks_reg_api');
$showBackendModule = isset($contentBlocksSettings['showBackendModule']) ? (bool)$contentBlocksSettings['showBackendModule'] : true;
if ($showBackendModule) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'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');
}
);