Issue Feature New Orphaned

#90130Introduce option for syncing fields with slug in TCA type "slug"

Christian Eßl 01/16/20, 12:33 updated 02/19/20, 19:08

Description

I propose a new option for the “generatorOptions” config in a TCA slug type to automatically sync changes made in one of the configured fields with the slug. (defaulting to false)

'type' => 'slug',
    'config' => [
        'generatorOptions' => [
            'fields' => ['title'],
            'sync' => true,
            'replacements' => [
                '/' => ''
            ],
        ]
        'fallbackCharacter' => '-',
        'prependSlash' => true,
        'eval' => 'uniqueInPid'
    ]

So if “sync” is set to true, changing the “title” field in a backend form would automatically trigger a “recreate” for the connected slug, to keep the changes in sync.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[FEATURE] Introduce option for syncing fields with slug in TCA type "slug" Resolves: #90130 Releases: main