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

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' => '',
            ],
        ],
    ],
]
Copied!