4

I am new to typo3, and I need help concerning the News extension and the $TCA configuration.

I have made an extension called "Activité" which extends from News. This went pretty well. I created some custom fields and I was able to make my extension "selectable" from the select field already available in the "General" tab.

All I want to do is to hide the default selectable fields already there (in this case, I want to hide "Internal page" and "External page".

It seems so simple, but I want to do this the right way.

4

1 回答 1

6

您没有编写您使用的新闻扩展程序。对于旧的 tt_news 你禁用

TCEFORM.tt_news.type.removeItems = 1,2

对于新的“新闻”

TCEFORM.tx_news_domain_model_news.type.removeItems = 1,2

一般语法是:

TCEFORM.[table_name].[field_name].[action]

例如,您可以完全禁用未使用的字段

TCEFORM.[table_name].[field_name].disabled = 1

您还可以使用语法为字段设置默认值

TCAdefaults.[table_name].[field_name] = value

您应该在页面属性中添加此打字稿。选项卡“资源”,TypoScript 配置/页面 TSConfig 字段。

于 2013-05-25T07:30:30.060 回答