mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-12-24 15:06:10 +01:00
9f43ea427b
To avoid name clashes we use a more precise extension key. Also the namespace is adjusted accordingly. Resolves: #8
27 lines
919 B
PHP
27 lines
919 B
PHP
<?php
|
|
|
|
(function (string $extKey) {
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
|
"@import 'EXT:" . $extKey . "/Configuration/PageTSconfig/*.tsconfig'"
|
|
);
|
|
|
|
$icons = [
|
|
'skill',
|
|
'skillset',
|
|
];
|
|
$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',
|
|
]
|
|
);
|
|
}
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$extKey] =
|
|
\SkillDisplay\SkilldisplayContent\Backend\Preview::class;
|
|
})('skilldisplay_content');
|