Skip to content
Snippets Groups Projects
Commit 98961576 authored by Benni Mack's avatar Benni Mack Committed by Susanne Moog
Browse files

[FEATURE] Add custom generator options via hook

In order to allow custom functionality like "Skip pages of type XYZ", a new
hook is added to the SlugHelper which can be added via

$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers']

The userFunc needs to return the new / modified $slug which is then put through the
sanitize() method.

TYPO3 Core does not provide custom functionality so this hook allows
to build everything a custom installation or extension wants to hook in.

Resolves: #88198
Releases: master, 9.5
Change-Id: Iad548da69ba001c696afd7d7f834d4950318c029
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60418


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent 082de0c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment