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

commit cbb4c8441edcdb8ed1c8f40ab6df4ccec5b88b44
Author: Cedric Ziel <*****@cedric-ziel.com>
Date:   Wed Sep 25 12:36:50 2013 +0200

    [TASK] TypoLink ViewHelpers
    
    Those ViewHelpers render typoLink compatible parameter arrays to URIs/Anchors

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit eb94d0c890d4ef56c939e7e6abfa85462f5b713a
Author: Cedric Ziel <*****@cedric-ziel.com>
Date:   Thu Jan 9 14:19:09 2014 +0100

    [DOC] Enhance TypoLink ViewHelper Documentation
    
    Made it clear how a simple link could look like and referenced core docs

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file