Typo3 LTS9 路由:重用 config.YAML [英] Typo3 LTS9 Routing: ReUse config.YAML
问题描述
重用 config.yaml 进行路由的正确方法是什么?
What's the right way to reuse config.yaml for routing?
情况:我有一个带有不同网站的typo3 安装.200多行的routing-config保存在:\typo3conf\sites\website1\config.yaml
Situation: I have a typo3 installation with different websites. The routing-config with more than 200 lines is saved in: \typo3conf\sites\website1\config.yaml
将此 config.yaml 与所有其他网站一起使用的正确方法是什么,并且仅重新配置以下方面的差异:\typo3conf\sites\website2-100\config.yaml
What the right way to use this config.yaml with all other websites and only reconfig the differences in: \typo3conf\sites\website2-100\config.yaml
有了排版,这很容易.有没有办法使用这个:
With typoscript this where easy. Is there a way to use this:
1. <INCLUDE_TYPOSCRIPT: source="FILE:\typo3conf\sites\website1\config.yaml">
2. Overide differences like "rootPageID: 2" or delete configs with ">"
推荐答案
如果你使用TYPO3v9,你可以使用imports:
.
If you use TYPO3v9, you can use imports:
.
https:///docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Yaml/Index.html
从 TYPOv10 开始,它们也可以是相对的:
From TYPOv10 on they can be relative, too:
这篇关于Typo3 LTS9 路由:重用 config.YAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!