Feature: #90026 - Expose internal typoLinkParts in TypolinkViewHelper

See Issue #90026

Description

Parameters being generated internally by TypoLink using <f:link.typolink parts-as="typoLinkParts"> view helper are exposed as variable and can be used in Fluid templates.

View helper attribute parts-as (default typoLinkParts) allows to define the variable name to be used containing the following internal parts:

  • url
  • target
  • class
  • title
  • additionalParams

Details for these internal parts are documented for typolink.parameter in TypoScript reference

Impact

Multiple instructions for attribute parameter (e.g. persisted to entity record) can be used individually.

<f:link.typolink parameter="123 _top news title" parts-as="parts">
   {parts.url}
   {parts.target}
   {parts.class}
   {parts.title}
   {parts.additionalParams}
</f:link.typolink>