Project

General

Profile

Actions

Bug #89390

closed

Slug generation: Fallback fields seems not to work

Added by Alex Kellner over 4 years ago. Updated 6 months ago.

Status:
Resolved
Priority:
Should have
Category:
-
Target version:
-
Start date:
2019-10-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 9.5.9

Target: We want to use pages.nav_title for slug generation of pages and if nav_title is empty, title should be used instead.
Luckily there is a good documentation that describes this scenario exactly:
https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Slug.html#generatoroptions

Problem: If pages.nav_title and pages.title is filled and the slug will be regenerated, values of both fields are used to fill the slug.

If I follow the recommendation, this TCA should work as described:

$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['fields'] = ['nav_title', 'title'];

The complete TCA for pages.slug:

The problem:

Actions

Also available in: Atom PDF