在 TYPO3 new/edit 向导中隐藏特定域模型字段

Hide specific domain model fields in TYPO3 new/edit wizards

正如标题所说,我想在 TYPO3 新建和编辑向导中隐藏域模型的特定字段。这些字段是 read-only 并且在相关操作期间由我自己的操作填充。 这可以通过 TCA 设置或类似设置实现吗?! 提前致谢,奥利弗

1) 使用 TCA 类型 passthrough 完全隐藏字段。

来自文档:"Can be saved/updated through TCE but the value is not evaluated in any way and the field has no rendering in the TCEforms."

$GLOBALS['TCA']['pages']['columns']['nav_title']['config']['type'] = 'passthrough';

2) 或使用 TCEFORM disabled to hide the field in the edit forms, see here

TCEFORM.pages.nav_title.disabled = 1 

在 TCA 中将字段标记为只读:https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Input.html#readonly