Issue Bug Closed

#91762Update wizard pagesSlugs doesn't respect slugs TCA configuration

J. Peter M. Schuler 07/08/20, 10:21 updated 07/16/24, 11:30

Description

The description of the update wizard says slug generation “is done by evaluating the page title / navigation title and all of its rootline.”
However in the code nav_title is never mentioned and the TCA is overridden: @$fieldConfig[‘generatorOptions’][‘fields’] = [‘tx_realurl_pathsegment,title’];@

As the generatorOptions might easily allow using nav_title, as mentioned in the doc examples I’d suggest not overriding the field to allow e.g. to set
$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['fields'] = [['nav_title', 'title']];

(The default value of pages.TCA is ['title'] I won’t propose changing that in favor of unpredicted regressions)

Thus, I propose to delete this override and update the description to “is done by evaluating e.g. the page title and all of its rootline.”

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Mirko Schade commented 02/17/21, 08:02

    I have also ran in this issue. Maybe it should merge the TCA configurations. This is also in TYPO3 v10.

  2. Benni Mack commented and changed status New Closed 07/16/24, 11:30

    Unfortunately there is nothing we can do as this code has been removed in all versions supported by now. It is a good idea and I suggest to let the ELTS team or core_upgrader developers know.