Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Uri.typolink ViewHelper <f:uri.typolink>
A ViewHelper to create uris from fields supported by the link wizard.
Example
{link} contains 19 - - - &X=y
Please note that due to the nature of typolink you have to provide a full set of parameters. If you use the parameter only, then target, class and title will be discarded.
Minimal usage
<f:uri.typolink parameter="{link}" />
/page/path/name.html?X=y
Depending on routing and page path configuration.
Full parameter usage
<f:uri.typolink parameter="{link}" additionalParams="&u=b" />
/page/path/name.html?X=y&u=b
Depending on routing and page path configuration.
Go to the source code of this ViewHelper: Uri\TypolinkViewHelper.php (GitHub).
Arguments
The following arguments are available for the uri.typolink ViewHelper:
absolute
-
- Type
- bool
- Default
- false
Ensure the resulting URL is an absolute URL
addQueryString
-
- Type
- string
- Default
- false
If set, the current query parameters will be kept in the URL. If set to "untrusted", then ALL query parameters will be added. Be aware, that this might lead to problems when the generated link is cached.
addQueryStringExclude
-
- Type
- string
- Default
- ''
Define parameters to be excluded from the query string (only active if addQueryString is set)
additionalParams
-
- Type
- string
- Default
- ''
stdWrap.typolink additionalParams
language
-
- Type
- string
link to a specific language - defaults to the current language, use a language ID or "current" to enforce a specific language
parameter
-
- Type
- string
- Required
- 1
stdWrap.typolink style parameter string