Feature #87085

Slug generator option fields should respect list of field definitions as fallback (nav_title // title)

Added by Joerg Boesche 8 days ago. Updated 8 days ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2018-12-05
Due date:
% Done:

0%

PHP Version:
7.2
Tags:
routing, pages
Complexity:
Sprint Focus:

Description

The slug generator option still uses the field "title" to generate the slug. It is not possible to define a list of fields "nav_title // title", as we know from TypoScript.

In case of SEO optimizations and the daily work of an editor, it should be possible to define a list of fields in the slug configuration.
An editor creates a new page and fills up the title and nav title. Actually the title is used to generate the slug. The behavior should be configurable with the "TCA columnsOverrides" mechanism.

TCA Example

'columns' => [
                'slug' => [
                    'config' => [
                        'generatorOptions' => [
                            'fields' => ['nav_title // title']
                        ]
                    ]
                ],

Example with defined nav_title:
Page-Title: Best summer deals
Navigation Title: Summer deals
Slug: /summer-deals (nav_title)
Slug-behavior: nav_title (is not empty) // title

Example with undefined nav_title, but title:
Page-Title: Best summer deals
Navigation Title: Summer deals
Slug: /best-summer-deals (title)
Slug-behavior: nav_title (is empty, fallback to title) // title

History

#1 Updated by Joerg Boesche 8 days ago

Additional information:
Handling in old realurl extension for pathsegment generation:

'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title'

Also available in: Atom PDF