josefglatz/TYPO3-Distribution

Custom <html> tag attribues

josefglatz opened this issue · 3 comments

Since this is not easy possible (on the first look) I have to investigate why it is not possible to retrieve the actual language in typoscript


	htmlTag_setParams = none
	htmlTag_stdWrap {
		setContentToCurrent = 1
		cObject = COA
		cObject {
			10 = LOAD_REGISTER
			10 {
				newLine.char = 10

				additionalHtmlTagAttributes {
					cObject = TEXT
					cObject {
						value = {$site.htmlTag_additionalTagAttributes}
						required = 1
						noTrimWrap = | ||
					}
				}
			}

			20 = TEXT
			20.value = <html class="no-js" dir="{site:languages.0.direction}" lang="{$site.l10n.language}"{register:additionalHtmlTagAttributes}>{register:newLine}
			20.insertData = 1

			90 = RESTORE_REGISTER
		}
	}

There are some pending patches in the TYPO3 core: https://review.typo3.org/#/c/58843/ https://review.typo3.org/#/c/58930/

fixed in core master

since I'm require dev-master as 9.5.1 the feature becomes available. Fixed in future-v9 branch