fallbackCharacter

fallbackCharacter
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']

Type

string

Scope

Proc. / Display

Default

-

Character that represents the separator of slug sections, that contain the fieldSeparator.

Examples

fallbackCharacter and fieldSeparator set

../../../../_images/Slug2.png
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_slugs.php
'columns' => [
    'slug_2' => [
        'exclude' => 1,
        'label' => 'slug_2',
        'config' => [
            'type' => 'slug',
            'size' => 50,
            'generatorOptions' => [
                'fields' => [
                    'input_1',
                ],
                'fieldSeparator' => '/',
                'prefixParentPageSlug' => true,
            ],
            'fallbackCharacter' => '-',
            'eval' => 'uniqueInSite',
            'default' => '',
        ],
    ],
]