[英]Using constants of site config in TypoScript conditions
In TYPO3 10 LTS it is possible to set constants in the site config and use them in typoscript (see here: 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
有任何想法吗?
只需阅读更新日志,本杰明。 :D
It is possible, for further information please take a look: 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]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.