[英]TYPO3 8.7 TCA ext_tables.php check
I've started a new project with TYPO3 CMS 8.7 LTS
and I've created my own distribution- (or provider-) extension for TypoScript
, TSconfig
and HTML-Templates -- like usual. 我已经开始了一个带有TYPO3 CMS 8.7 LTS
的新项目,我已经为TypoScript
, TSconfig
和HTML-Templates创建了我自己的发行版(或提供商)扩展程序。
At the new Install Tool
there's a check: TCA in ext_tables.php check 在新的Install Tool
有一个检查: ext_tables.php中的TCA检查
Extensions change TCA in ext_tables.php
Check for ExtensionManagementUtility and $GLOBALS["TCA"].
I've read, that the ext_tables.php
should be (nearly) empty. 我读过, ext_tables.php
应该(几乎)是空的。 So my file only contains the link to my static typoscript file: 所以我的文件只包含我的静态typoscript文件的链接:
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Distribution Extension');
That's all. 就这样。 But why is the Install-Tool-Check not successful? 但是为什么Install-Tool-Check没有成功?
I've also read , that this command should be in typo3conf/ext/distribution_ext/Configuration/TCA/Overrides/sys_template.php
, but If I try, I can't choose my distribution in backend (root template -> include static template) ..? 我也读过 ,这个命令应该在typo3conf/ext/distribution_ext/Configuration/TCA/Overrides/sys_template.php
,但如果我试试,我不能在后端选择我的发行版(根模板 - >包含静态模板)..?
What is the perfect way to include static template files in TYPO3 8.7? 在TYPO3 8.7中包含静态模板文件的完美方法是什么?
Putting the ExtensionManagementUtility::addStaticFile()
call into Configuration/TCA/Overrides/sys_template.php
is correct, but keep in mind to clear your system caches (the red lightning) afterwards. 将ExtensionManagementUtility::addStaticFile()
调用放入Configuration/TCA/Overrides/sys_template.php
是正确的,但请记住以后清除系统缓存(红色闪电)。
Also keep in mind that $_EXTKEY
is unavailable in that file, use your extension key in a string instead. 另请注意, $_EXTKEY
在该文件中不可用,请改用字符串中的扩展名。
Example: 例:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('distribution_ext', 'Configuration/TypoScript', 'Distribution Extension');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.