Make prepending slash in TCA slug configurable
[FEATURE] Make prepending slash in TCA slug configurable
A new TCA option for TCA type "slug" is added, called "prependSlash",
which adds a "/" in front of the field. For pages (pages.slug),
this is mandatory and cannot be configured, as the slug field
has to be filled and set to "/" as a base for the root page.
For other database fields, this is optional (and disabled by default),
and can be enabled via "prependSlash" in TCA config.
This option is mostly useful for recursive records, like categories,
but for most "flat" structures like "news" or "events", this is not
suitable. For pages, it is hard-coded and cannot be (un-)set.
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Oliver Hader <email@example.com>
Tested-by: Oliver Hader <firstname.lastname@example.org>
Reviewed-by: Jörg Bösche <email@example.com>
Reviewed-by: Jigal van Hemert <firstname.lastname@example.org>
Tested-by: Jigal van Hemert <email@example.com>