[!!!][TASK] Remove deprecated code from TableController
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 9.5 / Feature-86422-TypoScriptGetTextPropertySite.rst
1 .. include:: ../../Includes.txt
2
3 ==================================================
4 Feature: #86422 - TypoScript getText property site
5 ==================================================
6
7 See :issue:`86422`
8
9 Description
10 ===========
11
12 Site configuration can now be accessed via the :typoscript:`getText` property in TypoScript.
13
14 Example:
15
16 .. code-block:: typoscript
17
18 page.10 = TEXT
19 page.10.data = site:base
20 page.10.wrap = This is your base URL: |
21
22 Where :typoscript:`site` is the keyword for accessing an aspect, and the following parts are the configuration key(s) to access.
23
24 .. code-block:: typoscript
25
26 data = site:customConfigKey.nested.value
27
28 Impact
29 ======
30
31 Accessing site configuration is now possible in TypoScript, which enables to store site specific configuration options
32 in one central place and allows usage of that configuration from different contexts. While this sounds similar to using
33 TypoScript, with using site configuration this may also be used from backend or CLI context as long as the rootPageId
34 of the site is known. To avoid duplicating configuration options, TypoScript can now access these properties, too.
35
36 .. index:: PHP-API, ext:frontend