f:link.action¶
A view helper for creating links to extbase actions.
Properties¶
All the universal tag attributes
Exclusive properties for the HTML-Element¶
name¶
- Variable type
- String
- Description
- Specifies the name of an anchor.
- Default value
- NULL
- Mandatory
- No
rel¶
- Variable type
- String
- Description
- Specifies the relationship between the current document and the linked document.
- Default value
- NULL
- Mandatory
- No
rev¶
- Variable type
- String
- Description
- Specifies the relationship between the linked document and the current document.
- Default value
- NULL
- Mandatory
- No
target¶
- Variable type
- String
- Description
- Specifies where to open the linked document.
- Default value
- NULL
- Mandatory
- No
Exclusive properties of this ViewHelper¶
action¶
- Variable type
- String
- Description
- Target action.
- Default value
- NULL
- Mandatory
- No
arguments¶
- Variable type
- Array
- Description
- Arguments to be added to the link.
- Default value
- Empty Array
- Mandatory
- No
controller¶
- Variable type
- String
- Description
- Target controller. If NULL current controllerName is used.
- Default value
- NULL
- Mandatory
- No
extensionName¶
- Variable type
- String
- Description
- Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used.
- Default value
- NULL
- Mandatory
- No
pluginName¶
- Variable type
- String
- Description
- Target plugin. If empty, the current plugin name is used.
- Default value
- NULL
- Mandatory
- No
pageUid¶
- Variable type
- Integer
- Description
- Target page. See TypoLink destination.
- Default value
- NULL
- Mandatory
- No
pageType¶
- Variable type
- Integer
- Description
- Type of the target page. See typolink.parameter.
- Default value
- 0
- Mandatory
- No
noCache¶
- Variable type
- Boolean
- Description
- Set this to disable caching for the target page. You should not need this.
- Default value
- FALSE
- Mandatory
- No
noCacheHash¶
- Variable type
- Boolean
- Description
- Set this to suppress the cHash query parameter created by TypoLink. You should not need this.
- Default value
- FALSE
- Mandatory
- No
section¶
- Variable type
- String
- Description
- The anchor to be added to the URI.
- Default value
- Empty String
- Mandatory
- No
format¶
- Variable type
- String
- Description
- The requested format, e.g. ".html.
- Default value
- Empty String
- Mandatory
- No
linkAccessRestrictedPages¶
- Variable type
- Boolean
- Description
- If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
- Default value
- FALSE
- Mandatory
- No
additionalParams¶
- Variable type
- Array
- Description
- Additional query parameters that won't be prefixed like $arguments (overrule $arguments).
- Default value
- Empty Array
- Mandatory
- No
absolute¶
- Variable type
- Boolean
- Description
- If set, the URI of the rendered link is absolute.
- Default value
- FALSE
- Mandatory
- No
addQueryString¶
- Variable type
- Boolean
- Description
- If set, the current query parameters will be kept in the URI.
- Default value
- FALSE
- Mandatory
- No
argumentsToBeExcludedFromQueryString¶
- Variable type
- Array
- Description
- Arguments to be removed from the URI. Only active if $addQueryString = TRUE.
- Default value
- Empty Array
- Mandatory
- No
addQueryStringMethod¶
- Variable type
- String
- Description
- Set which parameters will be kept. Only active if $addQueryString = TRUE.
- Default value
- NULL
- Mandatory
- No
Examples¶
Link to the show-action of the current controller
<f:link.action action="show">action link</f:link.action>
<a href="index.php?id=123&tx_myextension_plugin[action]=show&tx_myextension_plugin[controller]=Standard&cHash=xyz">action link</f:link.action>
(depending on the current page and your TS configuration)