Typo3 6.0 - TCA - news - hide certain types of news in the selection box

I am new to typo3, and I need help with the news extension and $ TCA configuration.

I made an extension called "Activité" that applies to News. Everything went well. I created some custom fields, and I was able to make my extension “selectable” from the selection field already available on the General tab.

All I want to do is hide the already selected default fields (in this case, I want to hide the "Inner Page" and "Outer Page".

It seems so simple, but I want to do it right.

+4
source share
1 answer

You did not write what kind of news extension you are using. For old tt_news you disable

TCEFORM.tt_news.type.removeItems = 1,2 

for the new "news"

 TCEFORM.tx_news_domain_model_news.type.removeItems = 1,2 

General syntax:

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

For example, you can completely disable unused fields with

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

You can also set default values ​​for fields with syntax

 TCAdefaults.[table_name].[field_name] = value 

You must add this typo in the page properties. Resources tab, TypoScript configuration field / TSConfig page.

+5
source

Source: https://habr.com/ru/post/1482586/


All Articles