-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
34 lines (27 loc) · 1.01 KB
/
ext_localconf.php
File metadata and controls
34 lines (27 loc) · 1.01 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
<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') or die();
call_user_func(function () {
$doktype = (int)GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('form_custom_templates', 'doktype');
$typeNum = (int)GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('form_custom_templates', 'typeNum');
ExtensionManagementUtility::addTypoScriptConstants('
plugin.tx_form_custom_templates {
typeNum = ' . $typeNum . '
doktype = ' . $doktype . '
}
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'
module.tx_form {
settings {
yamlConfigurations {
500 = EXT:form_custom_templates/Configuration/Yaml/FormSetup.yaml
}
}
}
'
);
});