Uri.page ViewHelper <f:uri.page>
¶
A ViewHelper for creating URIs to TYPO3 pages.
Examples¶
URI to the current page¶
<f:uri.page>page link</f:uri.page>
/page/path/name.html
Depending on current page, routing and page path configuration.
Query parameters¶
<f:uri.page pageUid="1" additionalParams="{foo: 'bar'}" />
/page/path/name.html?foo=bar
Depending on current page, routing and page path configuration.
Query parameters for extensions¶
<f:uri.page pageUid="1" additionalParams="{extension_key: {foo: 'bar'}}" />
/page/path/name.html?extension_key[foo]=bar
Depending on current page, routing and page path configuration.
Source code¶
Go to the source code of this ViewHelper: PageViewHelper.php (GitHub).
Arguments¶
The following arguments are available for <f:uri.page>
:
-
pageUid
¶ -
- Type
- mixed
Target PID
-
additionalParams
¶ -
- Type
- mixed
- Default
array ()
Query parameters to be attached to the resulting URI
-
pageType
¶ -
- Type
- mixed
Type of the target page. See typolink.parameter
-
noCache
¶ -
- Type
- boolean
Set this to disable caching for the target page. You should not need this.
-
language
¶ -
- Type
- string
Link to a specific language - defaults to the current language, use a language ID or "current" to enforce a specific language
-
section
¶ -
- Type
- string
The anchor to be added to the URI
-
linkAccessRestrictedPages
¶ -
- Type
- boolean
If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
-
absolute
¶ -
- Type
- boolean
If set, the URI of the rendered link is absolute
-
addQueryString
¶ -
- Type
- boolean
If set, the current query parameters will be kept in the URI
-
argumentsToBeExcludedFromQueryString
¶ -
- Type
- mixed
- Default
array ()
Arguments to be removed from the URI. Only active if $addQueryString = TRUE
-
addQueryStringMethod
¶ -
- Type
- string
This argument is not evaluated anymore and will be removed in TYPO3 v12.