TYPO3 Logo
Fluid ViewHelper Reference
Release: 9.5

Loading data.

  • typo3/backend
    • link
      • link.editRecord
      • link.newRecord
    • moduleLayout
      • button
        • moduleLayout.button.linkButton
        • moduleLayout.button.shortcutButton
      • moduleLayout.menuItem
      • moduleLayout.menu
    • uri
      • uri.editRecord
      • uri.newRecord
    • avatar
    • moduleLayout
    • moduleLink
  • typo3/core
    • iconForRecord
    • iconForResource
    • icon
  • typo3/fluid
    • be
      • buttons
        • be.buttons.csh
        • be.buttons.shortcut
      • labels
        • be.labels.csh
      • menus
        • be.menus.actionMenuItemGroup
        • be.menus.actionMenuItem
        • be.menus.actionMenu
      • security
        • be.security.ifAuthenticated
        • be.security.ifHasRole
      • widget
        • be.widget.paginate
      • be.container
      • be.infobox
      • be.link
      • be.pageInfo
      • be.pagePath
      • be.pageRenderer
      • be.tableList
      • be.uri
    • debug
      • debug.render
    • form
      • select
        • form.select.optgroup
        • form.select.option
      • form.button
      • form.checkbox
      • form.hidden
      • form.password
      • form.radio
      • form.select
      • form.submit
      • form.textarea
      • form.textfield
      • form.upload
      • form.validationResults
    • format
      • format.bytes
      • format.case
      • format.crop
      • format.currency
      • format.date
      • format.html
      • format.htmlentitiesDecode
      • format.htmlentities
      • format.json
      • format.nl2br
      • format.number
      • format.padding
      • format.stripTags
      • format.urlencode
    • link
      • link.action
      • link.email
      • link.external
      • link.page
      • link.typolink
    • sanitize
      • sanitize.html
    • security
      • security.ifAuthenticated
      • security.ifHasRole
    • uri
      • uri.action
      • uri.email
      • uri.external
      • uri.image
      • uri.page
      • uri.resource
      • uri.typolink
    • widget
      • widget.autocomplete
      • widget.link
      • widget.paginate
      • widget.uri
    • base
    • cObject
    • debug
    • flashMessages
    • form
    • image
    • media
    • renderChildren
    • render
    • translate
  • typo3fluid/fluid
    • cache
      • cache.disable
      • cache.static
      • cache.warmup
    • format
      • format.cdata
      • format.htmlspecialchars
      • format.printf
      • format.raw
    • alias
    • case
    • comment
    • count
    • cycle
    • debug
    • defaultCase
    • else
    • for
    • groupedFor
    • if
    • inline
    • layout
    • or
    • render
    • section
    • spaceless
    • switch
    • then
    • variable
  • Sitemap
  • Index

PAGE CONTENTS

  • link.typolink
    • Example
      • Minimal usage
      • Full parameter usage
    • Arguments
      • parameter
      • target
      • class
      • title
      • additionalParams
      • additionalAttributes
      • useCacheHash
      • addQueryString
      • addQueryStringMethod
      • addQueryStringExclude
      • absolute
  1. Start
  2. typo3/fluid
  3. link
  4. link.typolink
View source How to edit Edit on GitHub

link.typolink¶

A ViewHelper to create links from fields supported by the link wizard

Example¶

{link} contains: t3://page?uid=2&arg1=val1#9 _blank some-css-class "Title containing Whitespace".

Or a legacy version from older TYPO3 versions: {link} contains: 9 _blank - "testtitle with whitespace" &X=y.

Minimal usage¶

<f:link.typolink parameter="{link}">
   Linktext
</f:link.typolink>

Output:

<a href="/page/path/name.html?X=y" title="testtitle with whitespace" target="_blank">
   Linktext
</a>

Depending on current page, routing and page path configuration.

Full parameter usage¶

<f:link.typolink parameter="{link}" additionalParams="&u=b"
    target="_blank"
    class="ico-class" title="some title"
    additionalAttributes="{type:'button'}"
    useCacheHash="true"
>
   Linktext
</f:link.typolink>

Output:

<a href="/page/path/name.html?X=y&u=b" title="some title" target="_blank" class="ico-class" type="button">
    Linktext
</a>

Depending on routing and page path configuration.

Arguments¶

parameter¶

DataType
string
Required
false
Description
StdWrap.typolink style parameter string

target¶

DataType
string
Required
false

Description

class¶

DataType
string
Required
false

Description

title¶

DataType
string
Required
false

Description

additionalParams¶

DataType
string
Required
false

Description

additionalAttributes¶

DataType
mixed
Default
array ()
Required
false

Description

useCacheHash¶

DataType
mixed
Required
false

Description

addQueryString¶

DataType
mixed
Required
false

Description

addQueryStringMethod¶

DataType
string
Default
‘GET’
Required
false

Description

addQueryStringExclude¶

DataType
string
Required
false

Description

absolute¶

DataType
mixed
Required
false
Description
Ensure the resulting URL is an absolute URL
  • Previous
  • Next
  • Home
  • Contact
  • Issues
  • Repository

Last updated: Mar 29, 2022 14:56

Last rendered: Mar 29, 2022 14:56

TYPO3 Theme 4.6.2

© Copyright since 2018 by the TYPO3 contributors
  • Legal Notice
  • Privacy Policy