Skip to content
Snippets Groups Projects
Commit f35ae233 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Move TCA instructions out of ext_tables if they do not belong there

parent 375eabb5
No related branches found
No related tags found
1 merge request!2Feature upgrade to typo3 10
<?php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'sg_youtube',
'Configuration/TypoScript',
'SG Youtube'
);
......@@ -4,3 +4,9 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['sgyoutube_yo
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'sgyoutube_youtube', 'FILE:EXT:sg_youtube/Configuration/FlexForms/flexform_sgyoutube_youtube.xml'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SGalinski.sg_youtube',
'Youtube',
'YouTube Videos'
);
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SGalinski.sg_youtube',
'Youtube',
'YouTube Videos'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('sg_youtube', 'Configuration/TypoScript', 'SG Youtube');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment