Project

General

Profile

Actions

Bug #99887

closed

TypoLink UserFunc in TypoScript seems not to work in 12

Added by Alex Kellner over 1 year ago. Updated 6 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
TypoScript
Target version:
-
Start date:
2023-02-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I just tried to use a UserFunc for typolink as part of a linkhandler configuration (like Torben shows it in his blog post https://www.derhansen.de/2022/01/typo3-multiple-dynamic-typolink-parameters.html).
The UserFunc is called correctly. But returning a string with a beginning A-tag does not render the link:

class TypoLink
{
    public function createEventLink(array $content, array $config): string
    {
        return '<a href="/">';
    }
}


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99886: Linkhandler with UserFunc - no ContentObjectRenderer availableClosed2023-02-08

Actions
Actions

Also available in: Atom PDF