how to disable fields in tca only for certain ctypes

Viewed 4830

I want to disable certain fields in the backend, e.g. many fields of gridelements and other content elements. I know about the possibilities of TCEFORM but it allowes only to disable a field in all cTypes. I need a way to disable certain field only for certain cTypes.

Is there a way to achieve this? Thanks

3 Answers

Meanwhile (since 9 LTS) it is possible via TsConfig:

TCEFORM.tt_content.subheader.types.text.disabled = 1

… disables the subheader field for all text content elements.

You can even disable a field for all cTypes and define an exception:

TCEFORM.tt_content.subheader{
    disabled = 1
    types.text.disabled = 0
}
Related