-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
executable file
·26 lines (23 loc) · 1013 Bytes
/
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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(static function (): void {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Glossary2',
'Glossary',
[
\JWeiland\Glossary2\Controller\GlossaryController::class => 'list, listWithoutGlossar, show',
]
);
// Add glossary2 plugin to new element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:glossary2/Configuration/TSconfig/ContentElementWizard.tsconfig">'
);
// Update old flex form settings
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['glossary2UpdateOldFlexFormFields']
= \JWeiland\Glossary2\Updater\MoveOldFlexFormSettingsUpdater::class;
// Update slugs of glossary records
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['glossary2UpdateSlug']
= \JWeiland\Glossary2\Updater\GlossarySlugUpdater::class;
});