diff --git a/Documentation/Conditions/Index.rst b/Documentation/Conditions/Index.rst index 44cf5518..928c8ee6 100644 --- a/Documentation/Conditions/Index.rst +++ b/Documentation/Conditions/Index.rst @@ -1233,7 +1233,7 @@ site() .. code-block:: typoscript :caption: EXT:site_package/Configuration/TypoScript/constants.typoscript - + my.constant = my global value [traverse(site('configuration'), 'settings/some/setting') == 'someValue'] my.constant = another value, if condition matches @@ -1287,6 +1287,8 @@ siteLanguage() fallback. Returns the language information for the hreflang tag as a string. + If needed, you can use this attribute for the :html:`` + attribute, see :confval:`htmlTag_stdWrap `. :typoscript:`siteLanguage("fallbackType")` Returns the language fallback mode as a string, one of `fallback`, diff --git a/Documentation/Functions/Data.rst b/Documentation/Functions/Data.rst index a124c6b5..5d0956d1 100644 --- a/Documentation/Functions/Data.rst +++ b/Documentation/Functions/Data.rst @@ -1000,7 +1000,9 @@ siteLanguage fallback. The language tag for this language defined by RFC 1766 / 3066 for - :html:`hreflang` attributes + :html:`hreflang` attributes. If needed, you can use this attribute + for the :html:`` attribute, see + :confval:`htmlTag_stdWrap `. :typoscript:`languageId` The language mapped to the ID of the site language. diff --git a/Documentation/TopLevelObjects/Config.rst b/Documentation/TopLevelObjects/Config.rst index e8295070..df8f8807 100644 --- a/Documentation/TopLevelObjects/Config.rst +++ b/Documentation/TopLevelObjects/Config.rst @@ -554,6 +554,19 @@ Properties of 'config' Modify the whole :html:`` tag with stdWrap functionality. This can be used to extend or override this tag. + For example it can be used to distinctly set a :html:`lang` attribute, + that may diverge from the automatically created attribute using the site + language settings. Normally, :html:`lang` is set to something like `en` + or `de`, only indicating the primary language. You may want to use the + :html:`hreflang` site language attribute instead (containing for example + `en-US`, `en-GB` or `de-AT`), which you can achieve via: + + .. code-block:: typoscript + :caption: EXT:site_package/Configuration/TypoScript/setup.typoscript + + config.htmlTag_stdWrap.override = + config.htmlTag_stdWrap.override.insertData = 1 + .. confval:: index_descrLgd :name: config-index-descrLgd :type: :ref:`data-type-integer`