TYPO3:sys_file_reference禁用Text&中的新字段。媒体

时间:2017-09-19 13:01:05

标签: typo3 typo3-7.6.x

我已将sys_file_reference扩展为新字段。 新字段也显示在文本和文本中。媒体。我该如何禁用它? 新字段只应显示在页面资源下吗?

谢谢。

Typo3 7.6.x

1 个答案:

答案 0 :(得分:2)

您需要更改pages的TCA,并仅在那里将字段添加到foreign_types。在我的新闻分发https://github.com/georgringer/news/blob/master/Configuration/TCA/tx_news_domain_model_news.php#L565-L602

中查看我是如何做到这一点的