Issue Feature Closed

#93590Make PopulatePageSlugs extendable

Philipp Kitzberger 02/25/21, 10:25 updated 05/11/21, 16:00

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

Reviews 1