繁体   English   中英

隐藏特殊 tt_content 类型中的 sys_file_reference 字段

[英]HIde sys_file_reference field in special tt_content type

我试图在我的自定义 tt_content CE 类型中隐藏 sys_file_reference.description 字段。

隐藏所有 tt_content(和页面)的字段就像这样

TCEFORM.sys_file_reference.description.disabled = 1

隐藏某个 CE 类型的 tt_content 字段是这样工作的

TCEFORM.tt_content.header.types.mycustomtype.disabled = 1

隐藏页面 sys_file_reference 中的字段是这样工作的

TCEFORM.pages.description.types.sys_file_reference.disabled = 1

但是,将这三者结合起来对我没有任何作用:

TCEFORM.tt_content.description.types.mycustomtype.disabled = 1 TCEFORM.sys_file_reference.description.types.mycustomtype.disabled = 1 TCEFORM.tt_content.description.types.sys_file_reference.types.mycustomtype.disabled = 1

有办法吗? TCA 解决方案也可以。

谢谢

三氯乙酸解决方案:

$GLOBALS['TCA']['tt_content']['types']['mycustomtype']['columnsOverrides']['mycolumn']['config']['overrideChildTca']['columns']['description'] = [
    'config' => [
        'type' => 'passthrough'
    ]
];

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM