首页 文章

隐藏TYPO3新建/编辑向导中的特定域模型字段

提问于
浏览
1

正如 Headers 所示,我想在TYPO3 new中隐藏域模型的特定字段并编辑向导 . 这些字段是只读的,并且在相关操作期间由我自己的操作填充 . 这可能通过TCA设置或类似设置吗?提前谢谢,奥利弗

2 回答

  • 1

    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
    
  • 0

相关问题