TSconfig code snippets 

Page TSconfig from can be used to influence display and behaviour of fields and forms in the backend. The following examples are for your convenience only, they are possible with any record type in TYPO3. Read more about what you can do with page TSconfig in the t3tsconfig:Index.

You want to add your example here? Hit the "Edit on Github" button in the top right and make a pull request on Github.

Setting default values 

It is possible to set default values for each field in the backend:

TCAdefaults.tx_news_domain_model_news {
    author = Jon Doe
    notes = Someone forgot to change the notes....
}
Copied!

Categories 

Set a default category 

Setting default values also works for categories:

TCAdefaults.tx_news_domain_model_news {
    categories = 9
}
Copied!

Limit categories to just one or several roots 

In many installations categories are used for multiple purposes. If you want to use certain category trees only in certain page trees or only for your news records, you can set the following

New in version TYPO3 11.4

treeConfig.startingPoints was added with TYPO3 11.4

TCEFORM.tx_news_domain_model_news.categories.config.treeConfig.startingPoints = 8,42
Copied!

Deprecated since version TYPO3 11.4

Before TYPO3 11.4 it was only possible to set one value as category root:

TCEFORM.tx_news_domain_model_news.categories.config.treeConfig.rootUid = 42
Copied!

See also t3tsconfig:pagetsconfigtceformconfigtreeconfig.