Feature: #87085 - Fallback options for slug fields
See forge#87085
Description
In case of SEO optimizations and the daily work of an editor, now it is possible to define a list of fields in the slug configuration as nested array:
'columns' => [
   'slug' => [
      'config' => [
         'generatorOptions' => [
            // use value of 'nav_title'. If 'nav_title' is empty, use value of 'title'
            'fields' => [['nav_title', 'title']]
         ]
      ]
   ],
]
            
        Copied!
    
The fallback field can also be combined with other fields:
'columns' => [
   'slug' => [
      'config' => [
         'generatorOptions' => [
            // Concatenate path segments. In first segment, use 'nav_title' or 'title'.
            'fields' => [['nav_title', 'title'], 'other_field']
         ]
      ]
   ],
]
            
        Copied!
    
Hint
In this context:
['nav_is the same astitle', 'title'] [['nav_ title'], ['title']] ['nav_is not the same astitle', 'title'] [['nav_ title', 'title']] 
Examples
| Configuration value | Values of an example page record | Resulting slug | 
|---|---|---|
        [ |             
        ['title' => 'Products', 'nav_ |             /products |     
        [ |             
        ['title' => 'Products', 'subtitle' => 'Product subtitle'] |             /products |     
        ['title', 'subtitle'] or 
        [ |             
        ['title' => 'Products', 'subtitle' => 'Product subtitle'] |             /products/ |     
        ['nav_ |             
        ['title' => 'Products', 'nav_ |             /best- |     
        ['seo_ |             
        ['title' => 'Products', 'nav_ |             /seo- |