-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_localconf.php
23 lines (17 loc) · 1.35 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
if (!defined('TYPO3')) {
die ('Access denied.');
}
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx-youtube-gdprembed-video',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:youtube_gdprembed/Resources/Public/Images/Icons/ext_icon_content.svg']
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:youtube_gdprembed/Configuration/TSconfig/ContentElementWizard.txt">');
// Register hook to show preview of tt_content element of CType="youtubegdprembed_youtube" in page module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['youtubegdprembed_youtube'] =
\SaschaSchieferdecker\YoutubeGdprembed\Hooks\PageLayoutView\YoutubePreviewRenderer::class;
// Register hook to check if a new image has to be pulled after changind a video ID
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['youtube_gdprembed'] = 'SaschaSchieferdecker\\YoutubeGdprembed\\Hooks\\TceMain\\TceMainHook';
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['youtube_gdprembed'] = 'SaschaSchieferdecker\\YoutubeGdprembed\\Hooks\\TceMain\\TceMainHook';