正如 Headers 所示,我想在TYPO3 new中隐藏域模型的特定字段并编辑向导 . 这些字段是只读的,并且在相关操作期间由我自己的操作填充 . 这可能通过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 隐藏编辑表单中的字段,请参阅here
TCEFORM.pages.nav_title.disabled = 1
在TCA中将字段标记为readOnly:https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Input.html#readonly
2 回答
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."
2)或使用 TCEFORM disabled 隐藏编辑表单中的字段,请参阅here
在TCA中将字段标记为readOnly:https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Input.html#readonly