Skip to main content Skip to page footer

Application Context im Backend sofort sichtbar

Sobald die Installation nicht im Production-Context läuft, wird der obere Balken im Backend anders eingefärbt.

In die ext_tables.php:

if (!\TYPO3\CMS\Core\Core\Environment::getContext()->isProduction()
) {
    $GLOBALS['TBE_STYLES']['skins']['my_sitepackage'] = [
        'name' => 'Development',
        'stylesheetDirectories' => [
            'css' => 'EXT:my_sitepackage/Resources/Public/Css/Backend/'
        ]
    ];
}

In die Datei EXT:my_sitepackage/Resources/Public/Css/Backend/backend.css

.scaffold-topbar{
    background: #a10000
}
.topbar-header-site::before,
.topbar-header-site::after,
.toolbar {
    background: unset;
}

Dieser Code ist gültig ab TYPO3 10.