Actions
Bug #87364
closedSlug generation wizard ignores columnsOverrides of TCA
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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,
];
Files
Actions