Bug #87364

Slug generation wizard ignores columnsOverrides of TCA

Added by Benjamin Gries Gries about 2 years ago. Updated 10 months 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

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

Actions
#1

Updated by Benjamin Gries Gries about 2 years ago

  • Description updated (diff)
#2

Updated by Benjamin Gries Gries about 2 years ago

  • Description updated (diff)
#3

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#4

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#5

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#6

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#7

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#8

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#9

Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#10

Updated by Gerrit Code Review 11 months ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#11

Updated by Gerrit Code Review 11 months ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#12

Updated by Gerrit Code Review 11 months ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61416

#13

Updated by Gerrit Code Review 10 months ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63741

#14

Updated by Gerrit Code Review 10 months ago

Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63741

#15

Updated by Gerrit Code Review 10 months ago

Patch set 3 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63741

#16

Updated by Benjamin Gries Gries 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#17

Updated by Daniel Goerz 10 months ago

  • Related to Bug #69183: Respect TCA option 'columnsOverrides' for server side field evaluations added
#18

Updated by Benni Mack 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF