Bug #87364

Slug generation wizard ignores columnsOverrides of TCA

Added by Benjamin Gries Gries 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-08
Due date:
% Done:

0%

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,
];

code-a.png View (32.3 KB) Benjamin Gries Gries, 2019-01-08 13:29

code-b.png View (32.5 KB) Benjamin Gries Gries, 2019-01-08 13:29

History

#1 Updated by Benjamin Gries Gries 2 months ago

  • Description updated (diff)

#2 Updated by Benjamin Gries Gries 2 months ago

  • Description updated (diff)

Also available in: Atom PDF