forked from Gernott/mask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
33 lines (29 loc) · 1.33 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
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Mask',
'tools',
'mask',
'bottom',
[
\MASK\Mask\Controller\WizardController::class => 'list, createMissingFolders',
\MASK\Mask\Controller\WizardContentController::class => 'new, create, edit, update, delete, purge, generate, showHtml, createMissingFolders, hide, activate, createHtml',
\MASK\Mask\Controller\WizardPageController::class => 'edit, update, showHtml',
],
[
'access' => 'admin',
'icon' => 'EXT:mask/Resources/Public/Icons/module-mask_wizard.svg',
'labels' => 'LLL:EXT:mask/Resources/Private/Language/locallang_mask.xlf',
]
);
// Include css for styling of backend preview of mask content elements
$GLOBALS['TBE_STYLES']['skins']['mask']['name'] = 'mask';
$GLOBALS['TBE_STYLES']['skins']['mask']['stylesheetDirectories'][] = 'EXT:mask/Resources/Public/Styles/Backend/';
(function () {
// Allow all inline tables on standard pages
$tcaCodeGenerator = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(MASK\Mask\CodeGenerator\TcaCodeGenerator::class);
$irreTables = $tcaCodeGenerator->getMaskIrreTables();
foreach ($irreTables as $table) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages($table);
}
})();