Typo3 ext_tables.php 在 v8+ 中仍然适用吗?

Typo3 is ext_tables.php still relevant in v8+?

我是 Typoscript 新手,目前正在按照教程开发扩展。文档似乎有点过时,所以我在一些地方弄糊涂了,特别是:

--ext_tables.php

--configuration/TCA/Overrides/tt_content.php

--configuration/TCA/Overrides/sys_template.php

...据我所知,大部分 ext_tables.php 代码现在驻留在 configuration/TCA/Overrides/tt_content.php 文件中(例如 ::registerPlugin 调用)。但是“::addStaticFile”调用现在位于何处?有人说 ext_tables.php,有人说 configuration/TCA/Overrides/sys_template.php ??

您认为他们最终会弃用 ext_tables.php 吗?

T3 文档站点可以在情况发生变化时更新示例。新手很困惑。

谢谢大家

逐渐清理扩展文件夹的根目录。除了 TCA 覆盖功能和 Riccardo 向您展示的弃用之外,TYPO3 v9 还简化了数据库 table 创建,请参阅 https://docs.typo3.org/typo3cms/extensions/core/latest/Changelog/9.3/Feature-85160-AutoCreateManagementDBFieldsFromTCACtrl.html

当涉及到静态 TypoScript 文件的注册时,只需检查其他核心扩展如何处理它。参见例如表单框架:https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php. This is best practise nowadays. Furtermore, use .typoscript as file extension, see https://docs.typo3.org/typo3cms/extensions/core/8.7/Changelog/8.7.x/Feature-78161-IntroduceTypoScriptFileExtension.html. In addition, .tsconfig shall be used for UserTS and PageTS, see https://docs.typo3.org/typo3cms/extensions/core/8.7/Changelog/8.5/Breaking-78384-FrontendIgnoresTCAInExtTables.html.