1

在 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

有任何想法吗?

4

1 回答 1

1

只需阅读更新日志,本杰明。:D

有可能,有关更多信息,请查看:https ://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.4/Feature-91080-SiteSettingsAsTsConstantsAndInTsConfig.html 。

上面的例子看起来像:

[page["pid"] == "{$uids.privacy}"] 
    here goes the typoscript configuration for the conditon
[END]
于 2020-06-29T12:42:23.057 回答