-
Benni Mack authored
The new Site handling functionality should ideally avoid TypoScript conditions as much as possible. However, if someone wanted to add attributes via config.htmlTag_setParams all language-dependant properties (e.g. dir and lang) which are generated by the site configuration are gone, leading to the way of having to workaround this issue by using stdWrap or conditions) In order to re-implement this functionality but also build on a more flexible level, a new TypoScript property "config.htmlTag.attributes." is added, which is an array for setting attributes to the <html> tag dynamically. This superseds the previous config.htmlTag_setParams option by providing a more flexible API to add attributes. `config.htmlTag.attributes.class = no-js` It is even possible to add attributes without a value: `config.htmlTag.attributes.amp = ` would render `<html lang="en" amp>` - keeping the existing parameters that are set by other TypoScript anyways. Resolves: #87033 Releases: master Change-Id: I6a18671fffbf97aab8d3dda938dc261706e4e6fd Reviewed-on: https://review.typo3.org/58976 Reviewed-by:
Josef Glatz <josef.glatz@typo3.org> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Benjamin Kott <benjamin.kott@outlook.com> Tested-by:
Benjamin Kott <benjamin.kott@outlook.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
8a811b6e