Feature: #87033 - New TypoScript Property config.htmlTag.attributes ¶
See Issue #87033
The new site handling functionality adds some attributes to the frontend rendering <html> tag automatically, even per language (e.g. “lang” and “dir” attributes) without having to use TypoScript anymore.
However, if custom properties should be added, e.g.
, this is not possible anymore without having
to reintroduce TypoScript conditions or complex stdWrap functionality. In previous versions the property
was used to override all properties, but since there were conditions in place for languages, this was a one-liner change per language.
In order to use the full power of TypoScript flexibility, it is possible now to use
allows to override and add custom attributes via TypoScript without having to re-add the existing attributes generated by SiteHandling.
This property supersedes the previous
option by providing a more flexible API to add attributes.
config.htmlTag.attributes.class = no-js
Will result in
It is even possible to add attributes without a value:
Please note that “lang” attribute in these examples are auto-generated by Site configuration, depending on the value added there.
If the TypoScript option
is used, then
has no effect anymore.