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>
Copied!

/page/path/name.html

Depending on current page, routing and page path configuration.

Query parameters

<f:uri.page pageUid="1" additionalParams="{foo: 'bar'}" />
Copied!

/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'}}" />
Copied!

/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>:

Name Type Default
mixed
mixed array ()
mixed
boolean
string
string
boolean
boolean
boolean
mixed array ()
string

pageUid

pageUid
Type
mixed

Target PID

additionalParams

additionalParams
Type
mixed
Default
array ()

Query parameters to be attached to the resulting URI

pageType

pageType
Type
mixed

Type of the target page. See typolink.parameter

noCache

noCache
Type
boolean

Set this to disable caching for the target page. You should not need this.

language

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

section
Type
string

The anchor to be added to the URI

linkAccessRestrictedPages

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

absolute
Type
boolean

If set, the URI of the rendered link is absolute

addQueryString

addQueryString
Type
boolean

If set, the current query parameters will be kept in the URI

argumentsToBeExcludedFromQueryString

argumentsToBeExcludedFromQueryString
Type
mixed
Default
array ()

Arguments to be removed from the URI. Only active if $addQueryString = TRUE

addQueryStringMethod

addQueryStringMethod
Type
string

This argument is not evaluated anymore and will be removed in TYPO3 v12.