简体   繁体   English

TYPO3 TCA,在已翻译项目中隐藏选项卡

[英]TYPO3 TCA, hide tab in translated item

In my Extension I create several tabs for the backend with --div--, the code looks something like this: 在我的扩展程序中,我使用--div--为后端创建了多个选项卡,代码如下所示:

    'types' => array(
      '0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1,--div--;My Tab, title, category,
    ),

While there is an easy way to hide a single field in the translated item with: 'displayCond' => 'FIELD:sys_language_uid:=:0', , I have no idea how to hide a whole tab. 虽然有一种简单的方法可以在翻译后的项目中隐藏单个字段: 'displayCond' => 'FIELD:sys_language_uid:=:0',但我不知道如何隐藏整个选项卡。

Does anybody know how I have to write the 'types' array to hide "My Tab" in the translation records? 有人知道我必须怎么写“类型”数组才能在翻译记录中隐藏“我的标签”吗? Thank you in advance. 先感谢您。

Edit (Solution): Using config as stated in the answer is possible, but there is another way I discovered by accident: If you hide all fields that are associated with a tab with 'displayCond' => 'FIELD:sys_language_uid:=:0', the tabs will also be hidden. 编辑(解决方案):可以使用答案中所述的配置,但是我偶然发现了另一种方法:如果使用'displayCond' => 'FIELD:sys_language_uid:=:0',隐藏与选项卡关联的所有字段'displayCond' => 'FIELD:sys_language_uid:=:0',标签也将被隐藏。

I think you may need to use tsconfig. 我认为您可能需要使用tsconfig。 Please check the section: "New content element wizard (mod.wizards.newContentElement)" in this link: http://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.3.2/view/1/5/ 请检查此链接中的“新内容元素向导(mod.wizards.newContentElement)”部分: http ://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.3.2/view/1/ 5 /

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

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