Documentation · ViewHelper reference

XSD schema file | vhs master

Link / TypolinkViewHelper

TypolinkViewhelper

Renders a link with the TypoLink function. Can be used with the LinkWizard

For more info on the typolink function, please consult the offical core-documentation: http://docs.typo3.org/typo3cms/TyposcriptIn45MinutesTutorial/TypoScriptFunctions/Typolink/Index.html

DEPRECATED: Use TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper instead

Examples

<!-- tag -->
<v:link.typolink configuration="{typoLinkConfiguration}" />
<v:link.typolink configuration="{object}">My LinkText</v:link.typolink>
<!-- with a {parameter} variable containing the PID -->
<v:link.typolink configuration="{parameter: parameter}" />
<!-- with a {fields.link} variable from the LinkWizard (incl. 'class', 'target' etc.) inside a flux form -->
<v:link.typolink configuration="{parameter: fields.link}" />
<!-- same with a {page} variable from fluidpages -->
<v:link.typolink configuration="{parameter: page.uid}" />
<!-- With extensive configuration -->
<v:link.typolink configuration="{parameter: page.uid, additionalParams: '&print=1', title: 'Follow the link'}">
    Click Me!
</v:link.typolink>

/

  • Tag usage example

    <v:link.typolink configuration="{foo: 'bar'}">
    	<!-- tag content - may be ignored! -->
    </v:link.typolink>
  • Inline usage example

    {v:link.typolink(configuration: {foo: 'bar'})}

Arguments

Argument Description Type
configuration

The typoLink configuration

array
Required attribute

Revision history