Deprecation: #100232 - $TBE_STYLES skinning functionality¶
See forge#100232
Description¶
The global configuration array $TBE_
has been deprecated in favor of a new
setting $TYPO3_
. Previously, before
TYPO3 v6.0, $TBE_
allowed for defining more styles within PHP instead
of using CSS.
However, now that CSS has become been much more powerful than 10 years ago,
it is time to change the logic and also consolidate TYPO3's internal configuration
settings.
This deprecation is in order to be more flexible for styling purposes, as the registration of custom stylesheets can now be handled on a per-project basis.
Extensions can use almost the same syntax, however registration is now done
in an extension's ext_
to reduce loading times for
ext_
files.
Impact¶
Registration of backend styles via $GLOBALS
in
an extension's ext_
file will trigger a PHP
deprecation notice.
Setting $GLOBALS
will also
trigger a deprecation notice every time the Admin Panel is loaded in the
TYPO3 frontend.
Affected installations¶
TYPO3 installations with custom styling in the TYPO3 backend or the Admin Panel
via $GLOBALS
.
Migration¶
Migrate to the new configuration setting $GLOBALS
which can be set per site or within an extension's ext_
.
For a custom stylesheet in the TYPO3 Admin Panel, it is recommended to use the new AdminPanel Module API (available since TYPO3 v9 LTS) where custom CSS and JavaScript files can be registered dynamically.