如何解决在 tx_news
我使用 TYPO3 9.5.26 和 tx_news 8.5.2。我已经用我自己的领域扩展了 sys_file_reference。我可以在我的流体模板中访问这个字段值,如下所示:
{file.properties.tx_myext_frame}
这已经过测试并且工作正常。但是在新闻模块中,它保持空白
{mediaElement.properties.tx_myext_frame}
谢谢
typo3conf\ext\myext\ext_tables.sql
CREATE TABLE sys_file_reference (
tx_myext_frame tinyint(4) DEFAULT '0' NOT NULL,);
typo3conf\ext\myext\Configuration\TCA\Overrides\sys_file_reference.PHP
// Add some fields to sys_file_reference table
$temporaryColumns = [
'tx_myext_frame' => [
'exclude' => 0,'label' => 'LLL:EXT:myext/Resources/Private/Language/locallang_db.xlf:tx_myext_frame','config' => [
'type' => 'check','default' => '0',]
],];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
'sys_file_reference','imageoverlayPalette','--linebreak--,tx_myext_invert,tx_myext_frame','after:description'
);
解决方法
我自己刚刚找到了答案 - 所以对于任何尝试这种用途的人
{mediaElement.originalResource.properties.tx_myext_frame}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。