-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_localconf.php
62 lines (56 loc) · 2.39 KB
/
ext_localconf.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
53
54
55
56
57
58
59
60
61
62
<?php
defined('TYPO3') || die('Access denied.');
call_user_func(
function($extKey = "er24_rechtstexte")
{
$typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Er24Rechtstexte',
'Main',
[
\ERecht24\Er24Rechtstexte\Controller\DomainConfigController::class => 'show'
],
// non-cacheable actions
[
\ERecht24\Er24Rechtstexte\Controller\DomainConfigController::class => ''
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
main {
iconIdentifier = ext-er24-rechtstexte-plugin-main
title = LLL:EXT:er24_rechtstexte/Resources/Private/Language/locallang_db.xlf:tx_er24_rechtstexte_main.name
description = LLL:EXT:er24_rechtstexte/Resources/Private/Language/locallang_db.xlf:tx_er24_rechtstexte_main.description
tt_content_defValues {
CType = list
list_type = er24rechtstexte_main
}
}
}
show = *
}
}'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
$extKey,
'constants',
"@import 'EXT:er24_rechtstexte/Configuration/TypoScript/constants.typoscript'"
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
$extKey,
'setup',
"@import 'EXT:er24_rechtstexte/Configuration/TypoScript/setup.typoscript'"
);
if(version_compare($typo3Version->getVersion(),'12.1', '<')) {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-er24-rechtstexte-plugin-main',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:er24_rechtstexte/Resources/Public/Icons/Extension.svg']
);
}
}
);