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.
Source code¶
Go to the source code of this ViewHelper: TypolinkViewHelper.php (GitHub).
Arguments¶
The following arguments are available for <f:uri.typolink>
:
-
parameter
¶ -
- Type
- string
- Required
true
StdWrap.typolink style parameter string
-
additionalParams
¶ -
- Type
- string
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
-
addQueryString
¶ -
- Type
- boolean
If set, the current query parameters will be kept in the URL
-
addQueryStringMethod
¶ -
- Type
- string
This argument is not evaluated anymore and will be removed in TYPO3 v12.
-
addQueryStringExclude
¶ -
- Type
- string
Define parameters to be excluded from the query string (only active if addQueryString is set)
-
absolute
¶ -
- Type
- boolean
Ensure the resulting URL is an absolute URL