Search code examples
typo3typoscriptfluidfluid-styled-content

TYPO3: Custom content element - TCA fields configuration


I followed a tutorial to implement custom content elements in TYPO3. I don't understand how to configure backend fields.

Here is my override for tt_content:

$GLOBALS['TCA']['tt_content']['types']['my_custom_ce'] = [
    'showitem'         => '
            --palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
            --linebreak--, header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_formlabel,
            --linebreak--, date;Datum,
            --linebreak--, media;Media,
            --linebreak--, bodytext;text,
];

I would like for example to change the textarea size for the "bodytext" field. I read the official TCA reference but still don't get how this is working


Solution

  • The change of textarea fild size is done in

    $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config'] etc.

    Look for details in the TCA reference.

    This changes the field size for all CEs. As far as I know it is not possible to change this only for one CE.