Commit e41f3b94 authored by Alexander Grein's avatar Alexander Grein

Move static file integration to TCA/Overrides/sys_template.php; Small cleanups;

parent 86707c7e
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'domaincheck',
'Configuration/TypoScript',
'Domaincheck'
);
<?php
if (!defined('TYPO3_MODE')) die ('Access denied.');
defined('TYPO3_MODE') or die();
/***************
/*
* Add autoloader
*/
\HDNET\Autoloader\Loader::extLocalconf('MediaEssenz', $_EXTKEY, [
......@@ -10,3 +10,13 @@ if (!defined('TYPO3_MODE')) die ('Access denied.');
'Plugins',
'FlexForms',
]);
/*
* Register icons
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extension-domaincheck',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $_EXTKEY . '/ext_icon.svg']
);
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) die ('Access denied.');
defined('TYPO3_MODE') or die();
/***************
/*
* Add autoloader
*/
\HDNET\Autoloader\Loader::extTables('MediaEssenz', $_EXTKEY, [
......@@ -11,24 +11,9 @@ if (!defined('TYPO3_MODE')) die ('Access denied.');
'FlexForms',
]);
/***************
* Add main template
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Main');
/***************
/*
* ContentElementWizard for Check
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElementWizard.typoscript">'
);
/***************
* Register icons
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extension-domaincheck',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $_EXTKEY . '/ext_icon.svg']
);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment