Be.link ViewHelper <f:be.link>
A ViewHelper for creating URIs to modules.
Examples
URI to the web_ts module on page 92:
<f:be.link route="web_ts" parameters="{id: 92}">Go to web_ts</f:be.link>
Copied!
<a href="/typo3/module/web/ts?token=b6e9c9f&id=92">Go to web_ts</a>
Source code
Go to the source code of this ViewHelper: Be\LinkViewHelper.php (GitHub).
Arguments
Allows arbitrary arguments
This ViewHelper allows you to pass arbitrary arguments not defined below directly
to the HTML tag created. This includes custom
data-
arguments.
The following arguments are available for the be.link ViewHelper:
accesskey
-
- Type
- string
Keyboard shortcut to access this element
additionalAttributes
-
- Type
- array
Additional tag attributes. They will be added directly to the resulting HTML tag.
aria
-
- Type
- array
Additional aria-* attributes. They will each be added with a "aria-" prefix.
class
-
- Type
- string
CSS class(es) for this element
data
-
- Type
- array
Additional data-* attributes. They will each be added with a "data-" prefix.
dir
-
- Type
- string
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
id
-
- Type
- string
Unique (in this file) identifier for this HTML element.
lang
-
- Type
- string
Language for this element. Use short names specified in RFC 1766
name
-
- Type
- string
Specifies the name of an anchor
onclick
-
- Type
- string
JavaScript evaluated for the onclick event
parameters
-
- Type
- array
- Default
- array ( )
An array of parameters
referenceType
-
- Type
- string
- Default
- 'absolute'
The type of reference to be generated (one of the constants)
rel
-
- Type
- string
Specifies the relationship between the current document and the linked document
rev
-
- Type
- string
Specifies the relationship between the linked document and the current document
route
-
- Type
- string
- Required
- 1
The name of the route
style
-
- Type
- string
Individual CSS styles for this element
tabindex
-
- Type
- integer
Specifies the tab order of this element
target
-
- Type
- string
Specifies where to open the linked document
title
-
- Type
- string
Tooltip text of element