Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Make SiteLanguage available in TypoScript
The current language configuration should be available in TS as well. Resolves: #86973 Releases: master, 9.5 Change-Id: Iae71b550b3d000b12b4e127fee751740c3a36bf7 Reviewed-on: https://review.typo3.org/59302 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Josef Glatz <josef.glatz@typo3.org> Tested-by: Josef Glatz <josef.glatz@typo3.org> Reviewed-by: Jan Helke <typo3@helke.de> Tested-by: Jan Helke <typo3@helke.de>
- Loading branch information
1 parent
30cf5b6
commit 7e8931a
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ntation/Changelog/9.5.x/Feature-86973-TypoScriptGetTextPropertySiteLanguage.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
========================================================== | ||
Feature: #86973 - TypoScript getText property siteLanguage | ||
========================================================== | ||
|
||
See :issue:`86973` | ||
|
||
Description | ||
=========== | ||
|
||
Site language configuration can now be accessed via the :typoscript:`getText` property `siteLanguage` | ||
in TypoScript. | ||
|
||
Examples: | ||
|
||
.. code-block:: typoscript | ||
page.10 = TEXT | ||
page.10.data = siteLanguage:navigationTitle | ||
page.10.wrap = This is the title of the current site language: | | ||
.. code-block:: typoscript | ||
page.10 = TEXT | ||
page.10.dataWrap = The current site language direction is {siteLanguage:direction} | ||
Impact | ||
====== | ||
|
||
Accessing the current site language configuration is now possible in TypoScript. | ||
|
||
.. index:: PHP-API, ext:frontend, NotScanned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters