-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
52 lines (47 loc) · 2.19 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
50
51
52
<?php
/*
* Copyright notice
*
* (c) DMK E-BUSINESS GmbH <dev@dmk-ebusiness.de>
* All rights reserved
*
* This file is part of TYPO3 CMS-based extension "mkcontentai" by DMK E-BUSINESS GmbH.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/
defined('TYPO3') or exit;
(static function () {
TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Mkcontentai',
'system',
'contentai',
'',
[
DMK\MkContentAi\Controller\AiImageController::class => 'filelist, variants, prompt, promptResult, saveFile, upscale, extend, cropAndExtend, crop',
DMK\MkContentAi\Controller\SettingsController::class => 'settings',
DMK\MkContentAi\Controller\AiTextController::class => 'altText, altTextSave, altTexts, altTextsSave, filelist',
DMK\MkContentAi\Controller\AiVideoController::class => 'prepareImageToVideo, imageToVideo, filelist, saveFile',
DMK\MkContentAi\Controller\AiTranslationController::class => 'settings, translateContentEasy, translateContentPlain',
DMK\MkContentAi\Controller\AiTextLogsController::class => 'show, redirectToEdit',
],
[
'access' => 'user,group',
'icon' => 'EXT:mkcontentai/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:mkcontentai/Resources/Private/Language/locallang_contentai.xlf',
]
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_mkcontentai_domain_model_alt_text_logs');
})();
$GLOBALS['TYPO3_CONF_VARS']['BE']['customPermOptions']['mkcontentaiSettingsPermissions'] = [
'header' => 'LLL:EXT:mkcontentai/Resources/Private/Language/locallang_contentai.xlf:labelMkcontentaiPermissions',
'items' => [
'settingsPermissions' => [
'LLL:EXT:mkcontentai/Resources/Private/Language/locallang_contentai.xlf:labelSettingsPageCurrentGroup',
],
'tt_contentImagePrompt' => [
'LLL:EXT:mkcontentai/Resources/Private/Language/locallang_contentai.xlf:labelSettingsImageGenerationPrompt',
],
],
];