forked from romm/TYPO3-Site-Factory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
executable file
·38 lines (35 loc) · 1.6 KB
/
ext_tables.php
File metadata and controls
executable file
·38 lines (35 loc) · 1.6 KB
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
<?php
if (!defined('TYPO3_MODE')) {
throw new \Exception('Access denied.');
}
call_user_func(
function ($extensionKey) {
if (TYPO3_MODE === 'BE') {
// Registering module.
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Romm.' . $extensionKey,
'tools',
'Administration',
'',
[
'Administration' => 'index,new,submit,processCopy,help',
'Duplication' => 'ajaxProcessDuplication',
'Ajax' => 'dispatch'
],
[
'access' => 'user,group',
'icon' => 'EXT:' . $extensionKey . '/ext_icon.png',
'labels' => 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_sitefactory.xlf',
]
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extensionKey, 'Configuration/TypoScript/Default', 'Site Factory - Default settings');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extensionKey, 'Configuration/TypoScript/FieldsExample', 'Site Factory - Fields example');
// Extending locallang files.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:' . $extensionKey . '/Resources/Private/Language/locallang.xlf'] = [
'EXT:' . $extensionKey . '/Resources/Private/Language/FineUploader.xlf',
'EXT:' . $extensionKey . '/Resources/Private/Language/FieldsLocallang.xlf'
];
},
$_EXTKEY
);