在 TYPO3 10 LTS 中,可以在站点配置中设置常量并在打字稿中使用它们(参见此处:https ://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/SiteHandling /UseSiteInTypoScript.html )
我想知道我是否也可以在打字稿和 tsconfig 条件下使用常量,例如
[page["pid"] == "{$site.settings.uids.privacy}"]
here goes the typoscript configuration for the conditon
[END]
我以这种方式在站点配置中设置常量:
rootPageId: 1
(...)
settings:
uids:
privacy: 124
meta: 127
有任何想法吗?