link.typolink¶
A ViewHelper to create links from fields supported by the link wizard
Examples¶
{link} contains “19 _blank - “testtitle with whitespace” &X=y”
minimal usage:
<f:link.typolink parameter="{link}">
Linktext
</f:link.typolink>
Output:
<a href="index.php?id=19&X=y" title="testtitle with whitespace" target="_blank">
Linktext
</a>
Full parameter usage:
<f:link.typolink parameter="{link}" target="_blank" class="ico-class" title="some title" additionalParams="&u=b" additionalAttributes="{type:'button'}" useCacheHash="true">
Linktext
</f:link.typolink>
Output:
<a href="index.php?id=19&X=y&u=b" title="some title" target="_blank" class="ico-class" type="button">
Linktext
</a>