簡體   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