Commit fbf68c15 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[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's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 3d048b30
......@@ -15,14 +15,14 @@ Hooks can be registered via
.. code-block:: php
   $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['generatorOptions']['postModifiers'][] = My\Class->method;
$GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['generatorOptions']['postModifiers'][] = My\Class::class . '->method';
in `EXT:myextension/Configuration/TCA/Overrides/table.php`, where $tableName can be a table like `pages` and
`$fieldName` matches the slug field name, e.g. `slug`.
.. code-block:: php
   $GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers'][] = My\Class->modifySlug;
$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers'][] = My\Class::class . '->modifySlug';
The method then receives an parameter array with the following values:
......@@ -49,4 +49,4 @@ Any extension now allows to modify a specific slug, for instance only for a spec
It is also possible for extensions to implement custom functionality like "Do not include in slug generation" as known from RealURL.
.. index:: TCA
\ No newline at end of file
.. index:: TCA
Supports Markdown
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