Actions
Feature #94086
openSoftref for custom linkhandler
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2021-05-07
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
In our project we've got a custom linkhandler set up that works with external entities and the following link format: t3 ://foo?subtype=bar&identifier=123
Just to be clear: it's not a record linkhandler!
When trying to config the EXT:linkvalidator we've noticed that it uses the "softref index" to identify the links to be validated.
tt_content.bodytext
is configured via TCA to have this softref configuration: typolink_tag,email[subst],url
In \TYPO3\CMS\Core\Database\SoftReferenceIndex::findRef_typolink_tag
only these types seem to be processed though:
if ($linkDetails['type'] === LinkService::TYPE_FILE && preg_match('/file\?uid=(\d+)/', $matches[1], $fileIdMatch)) { ... } elseif ($linkDetails['type'] === LinkService::TYPE_PAGE && preg_match('/page\?uid=(\d+)#?(\d+)?/', $matches[1], $pageAndAnchorMatches)) { ... } elseif ($linkDetails['type'] === LinkService::TYPE_URL) { ... } elseif ($linkDetails['type'] === LinkService::TYPE_EMAIL) { ... } elseif ($linkDetails['type'] === LinkService::TYPE_TELEPHONE) { ... }
Am I right that LinkService::TYPE_RECORD
and our custom linkhandler is not being processed at the moment? Just to be sure before investing time and creating a patch ;-)
Files
Actions