uri.page¶
A view helper for creating URIs to TYPO3 pages.
Examples¶
URI to the current page:
<f:uri.page>page link</f:uri.page>
Output:
index.php?id=123
(depending on the current page and your TS configuration)
query parameters:
<f:uri.page pageUid="1" additionalParams="{foo: 'bar'}" />
Output:
index.php?id=1&foo=bar
(depending on your TS configuration)
query parameters for extensions:
<f:uri.page pageUid="1" additionalParams="{extension_key: {foo: 'bar'}}" />
Output:
index.php?id=1&extension_key[foo]=bar
(depending on your TS configuration)
Arguments¶
pageUid¶
- DataType
- mixed
- Required
- true
- Description
- Target PID
additionalParams¶
- DataType
- mixed
- Default
- array ()
- Required
- true
- Description
- Query parameters to be attached to the resulting URI
pageType¶
- DataType
- mixed
- Required
- true
- Description
- Type of the target page. See typolink.parameter
noCache¶
- DataType
- mixed
- Required
- true
- Description
- Set this to disable caching for the target page. You should not need this.
noCacheHash¶
- DataType
- mixed
- Required
- true
- Description
- Set this to suppress the cHash query parameter created by TypoLink. You should not need this.
section¶
- DataType
- string
- Required
- true
- Description
- The anchor to be added to the URI
linkAccessRestrictedPages¶
- DataType
- mixed
- Required
- true
- Description
- If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
absolute¶
- DataType
- mixed
- Required
- true
- Description
- If set, the URI of the rendered link is absolute
addQueryString¶
- DataType
- mixed
- Required
- true
- Description
- If set, the current query parameters will be kept in the URI
argumentsToBeExcludedFromQueryString¶
- DataType
- mixed
- Default
- array ()
- Required
- true
- Description
- Arguments to be removed from the URI. Only active if $addQueryString = TRUE
addQueryStringMethod¶
- DataType
- string
- Required
- true
- Description
- Set which parameters will be kept. Only active if $addQueryString = TRUE