Feature #88198

Allow modifications of Slugs by Hooks

Added by Benni Mack about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2019-04-24
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In order to allow custom specifics for websites with special needs, a hook is added to implement e.g. handling of sys folders or special hierarchies


Related issues

Related to TYPO3 Core - Bug #88289: RST rendering bug in Documentation file Closed 2019-05-07
Related to TYPO3 Core - Feature #87844: Add option to exclude pages from speaking url Needs Feedback 2019-03-05

Associated revisions

Revision 98961576 (diff)
Added by Benni Mack about 2 months ago

[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: TYPO3com <>
Tested-by: Georg Ringer <>
Tested-by: Susanne Moog <>
Reviewed-by: Georg Ringer <>
Reviewed-by: Susanne Moog <>

Revision c7267770 (diff)
Added by Benni Mack about 2 months ago

[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/+/60628
Tested-by: TYPO3com <>
Tested-by: Susanne Moog <>
Reviewed-by: Susanne Moog <>

Revision fbf68c15 (diff)
Added by Benni Mack about 1 month ago

[BUGFIX] Fix RST rendering in Documentation file

Due to some encoding issue, documentation
of the new feature for slug TCA hooks
is broken.

The patch adapts the RST file.

Resolves: #88289
Related: #88198
Releases: master, 9.5
Change-Id: I8e9027aba14678d678751246380833fce8a0e07b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60694
Tested-by: Andreas Fernandez <>
Tested-by: Georg Ringer <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Georg Ringer <>

Revision b1b148ed (diff)
Added by Benni Mack about 1 month ago

[BUGFIX] Fix RST rendering in Documentation file

Due to some encoding issue, documentation
of the new feature for slug TCA hooks
is broken.

The patch adapts the RST file.

Resolves: #88289
Related: #88198
Releases: master, 9.5
Change-Id: I8e9027aba14678d678751246380833fce8a0e07b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60702
Tested-by: Georg Ringer <>
Reviewed-by: Georg Ringer <>

History

#1 Updated by Gerrit Code Review about 2 months ago

  • Status changed from New to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60418

#2 Updated by Gerrit Code Review about 2 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60418

#3 Updated by Gerrit Code Review about 2 months ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60628

#4 Updated by Benni Mack about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#5 Updated by Benni Mack about 1 month ago

  • Related to Bug #88289: RST rendering bug in Documentation file added

#6 Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed

#7 Updated by Benni Mack about 1 month ago

  • Related to Feature #87844: Add option to exclude pages from speaking url added

Also available in: Atom PDF