2020-09-21 16:36:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
(function (string $extKey) {
|
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
|
|
|
"@import 'EXT:" . $extKey . "/Configuration/PageTSconfig/*.tsconfig'"
|
|
|
|
);
|
|
|
|
|
|
|
|
$icons = [
|
|
|
|
'skill',
|
2020-09-22 14:03:20 +02:00
|
|
|
'skillset',
|
2020-09-21 16:36:01 +02:00
|
|
|
];
|
|
|
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
|
|
|
|
\TYPO3\CMS\Core\Imaging\IconRegistry::class
|
|
|
|
);
|
|
|
|
foreach ($icons as $icon) {
|
|
|
|
$iconRegistry->registerIcon(
|
|
|
|
'skilldisplay-' . $icon,
|
|
|
|
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
|
|
|
|
[
|
|
|
|
'source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $icon . '.png',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-07-07 14:19:07 +02:00
|
|
|
// todo v12?
|
|
|
|
// TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent
|
2020-09-21 16:36:01 +02:00
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$extKey] =
|
2021-01-25 16:02:17 +01:00
|
|
|
\SkillDisplay\SkilldisplayContent\Backend\Preview::class;
|
2023-07-07 12:18:44 +02:00
|
|
|
|
2023-07-07 12:55:18 +02:00
|
|
|
// Inject skillsets into valuepicker form
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord']
|
|
|
|
[\SkillDisplay\SkilldisplayContent\FormDataProvider\ValuePickerItemDataProvider::class] = [
|
|
|
|
'depends' => [
|
|
|
|
\TYPO3\CMS\Backend\Form\FormDataProvider\TcaInputPlaceholders::class,
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
2023-07-07 12:18:44 +02:00
|
|
|
|
|
|
|
$caches = [
|
|
|
|
'sdcontent',
|
|
|
|
];
|
|
|
|
foreach ($caches as $cacheName) {
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheName] = [
|
|
|
|
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
|
|
|
|
'backend' => \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::class,
|
|
|
|
'options' => [
|
|
|
|
'defaultLifetime' => 2592000, // 30 days
|
|
|
|
],
|
|
|
|
'groups' => ['lowlevel']
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2021-01-25 16:02:17 +01:00
|
|
|
})('skilldisplay_content');
|