Issue Bug Closed

#87364Slug generation wizard ignores columnsOverrides of TCA

Benjamin Gries Gries 01/08/19, 13:29 updated 04/01/20, 21:14

Description

The slug generation wizard ignores the columnsOverrides of TCA. This makes it impossible to override the configuration for custom doktypes (in my example it’s a custom doktype with the ID 50). I tested it in a TYPO3 9.5.3 environment.

Code A (doesn’t work):

$GLOBALS['TCA']['pages']['types'][50]['columnsOverrides'] = [
    'slug' => [
         'config' => [
             'generatorOptions' => [
                 'fields' => [
                     'title', 'nav_title'
                 ],
                 'fieldSeparator' => '-',
                 'prefixParentPageSlug' => true,
             ]
         ]
     ]
];

Code B (works like a charm):

$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions'] = [
    'fields' => [
        'title', 'nav_title'
    ],
    'fieldSeparator' => '-',
    'prefixParentPageSlug' => true,
];

Reviews 2