#82738LinkHandler viewhelper
Description
Hi,
we had following pseudo code:
<typolink><br>linktext<br>svg icon<br></typolink>The svg icon should only showed up, if the typolink is an external url. Finally i build a simple viewhelper and use typo3 core functionality:
public function render($link = '')
{
/** @var LinkService $linkService */
$linkService = GeneralUtility::makeInstance(LinkService::class);
$linkDetails = $linkService->resolve($link);
return $linkDetails['type'];
}
Maybe we could implementent these little viewhelper to the core?
Simple call
<f:link.linkhandler link="{link}" />
or inline
{f:link.linkhandler(link:'{link}')}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.