From 2d821584fa3189420f4a59a2bae090201a97a620 Mon Sep 17 00:00:00 2001 From: "lina.wolf" Date: Sat, 1 Nov 2025 09:12:58 +0100 Subject: [PATCH] [!!!][FEATURE] Introduce System Resource API to resolve files/assets Wait for https://review.typo3.org/c/Packages/TYPO3.CMS/+/91287 to be resolved. References: https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/1400 Releases: main --- Documentation/Functions/Data.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/Functions/Data.rst b/Documentation/Functions/Data.rst index 25c66c7d..175cfd7f 100644 --- a/Documentation/Functions/Data.rst +++ b/Documentation/Functions/Data.rst @@ -777,9 +777,24 @@ path .. confval:: path :name: data-path + .. versionchanged:: 14.0 + :typoscript:`path` returns an absolute URL (prepended with + `config.absRefPrefix `_). + Path to a file, for example, that is in an extension. Returns an empty value if the file does not exist. + .. code-block:: typoscript + :caption: EXT:my_extension/Configuration/TypoScript/setup.typoscript + :emphasize-lines: 3 + + page.20 = TEXT + page.20 { + data = path : EXT:core/Resources/Public/Icons/Extension.svg + } + # Returns /typo3/sysext/core/Resources/Public/Icons/Extension.svg + + .. _data-type-gettext-path-example: Example: Resolve the path to a file