-
Notifications
You must be signed in to change notification settings - Fork 5
/
ext_tables.php
23 lines (19 loc) · 1.13 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
<?php
defined('TYPO3_MODE') || die();
call_user_func(function() {
// $extension = "typo3themeskeleton";
// $extensionName = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($extension));
// $className = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($extension);
// $pluginName = strtolower('PluginName');
// $pluginSignature = $extensionName.'_'.$pluginName;
// For this Classname you should use "typo3_theme_skeleton" as ext-key. <- wrong in this example extension
// $classname = 'Typo3ThemeSkeleton';
// If BE view - User logged in at BE
if (TYPO3_MODE === 'BE' || TYPO3_MODE === 'FE' && isset($GLOBALS['BE_USER'])) {
// add CSS and JS in TYPO3-BE
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][]
= \GroundStack\Typo3ThemeSkeleton\Hooks\BackendControllerHook::class . '->addCss';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][]
= \GroundStack\Typo3ThemeSkeleton\Hooks\BackendControllerHook::class . '->addJavaScript';
}
});