Project

General

Profile

Actions

Bug #87364

closed

Slug generation wizard ignores columnsOverrides of TCA

Added by Benjamin Gries Gries over 5 years ago. Updated about 4 years ago.

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

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #69183: Respect TCA option 'columnsOverrides' for server side field evaluationsClosed2015-08-19

Actions
Actions

Also available in: Atom PDF