forked from heisenbol/skvideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
35 lines (25 loc) · 1.08 KB
/
ext_tables.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
<?php
defined('TYPO3_MODE') || die('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('skvideo', 'Configuration/TypoScript', 'SK Video');
// \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile($extKey,'Configuration/PageTs/pageTSconfig.txt','SK Carousel');
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'skvideo-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:skvideo/Resources/Public/Icons/Backend/ContentElement/Video.png']
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.common {
elements {
skvideo_ce {
iconIdentifier = skvideo-icon
title = SK Youtube/Vimeo Video
description = Embed a Youtube/Vimeo Video
tt_content_defValues {
CType = skvideo_ce
}
}
}
show := addToList(skvideo_ce)
}
');