Task #101673
closedExplain how to replace existing linktypes in linkvalidator
100%
Description
Previously, it used to be possible to replace and override an existing linktype without XCLASS.
With the change https://review.typo3.org/c/Packages/TYPO3.CMS/+/73568, the linktypes are automatically registered so it is not possible to deactivate or replace one of them directly. (It is still possible with XCLASS).
- check what is current best practice for doing this
- document it
Currently we have an example for creating a new custom type: https://docs.typo3.org/c/typo3/cms-linkvalidator/main/en-us/Development/LinkTypeImplementation.html
AFAIK the identifier of the linktype must correspond to the link type returned by the link parsers, so we can't just use a different identifier.
A different identifier must be used for the new custom class.
Since we recommend to "override the ExternalLinktype class" as one possibility in Known problems, this should also be documented.
Updated by Sybille Peters 10 months ago
- Description updated (diff)
- Assignee set to Sybille Peters
Updated by Gerrit Code Review 10 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Sybille Peters 10 months ago
- Description updated (diff)
- Status changed from Under Review to New
Updated by Gerrit Code Review 10 months ago
- Status changed from New to Under Review
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Gerrit Code Review 10 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Gerrit Code Review 10 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Gerrit Code Review 10 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Gerrit Code Review 10 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82894
Updated by Gerrit Code Review 10 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82849
Updated by Sybille Peters 10 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1a5c049a704a395c080ea06c894cb79ad6e07be7.