Project

General

Profile

Actions

Feature #93590

closed

Make PopulatePageSlugs extendable

Added by Philipp Kitzberger about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-02-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

To be able to create upgrade wizards to populate slugs for custom tables it'd be nice to simply extend the core's \TYPO3\CMS\Install\Update\PopulatePageSlugs and change a few properties.

The only problem is that PopulatePageSlugs adds tx_realurl_pathsegment to the list of generaterOption fields.

My idea is to put the following part into a overwritable function:

        $fieldConfig = $GLOBALS['TCA'][$this->table]['columns'][$this->fieldName]['config'];
        $fieldConfig['generatorOptions']['fields'] = ['tx_realurl_pathsegment,title'];

Actions

Also available in: Atom PDF