如何删除扩展配置中的选项卡?

时间:2012-08-16 12:12:37

标签: typo3 typoscript

这是一个扩展,我需要知道如何删除我在下面标记的内容?

http://i.imgur.com/ioBvV.png

1 个答案:

答案 0 :(得分:1)

您可以通过向TCA添加新的内容类型来做到这一点(请注意,您还必须处理FE渲染):

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['columns']['CType']['config']['items'][] = array('New Title', 'tx_newkey');
$TCA['tt_content']['types']['tx_newkey']['showitem'] = '--div--;Social Media Buttons,type,language,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility';

创建类似的东西:

enter image description here

但是,有一个扩展可以通过实质上创建新的内容元素来修改TCA,还允许您定义FE呈现:http://typo3.org/extensions/repository/view/wec_contentelements

相关问题