Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Be.buttons.shortcut ViewHelper <f:be.buttons.shortcut>
Deprecated since version TYPO3 v11.5
Will be removed in TYPO3 v12. It was only introduced as "experimental".
ViewHelper which returns shortcut button with icon.
Examples
Default:
<f:be.buttons.shortcut />
Shortcut button as known from the TYPO3 backend. By default the current page id, module name and all module arguments will be stored.
Explicitly set parameters to be stored in the shortcut:
<f:be.buttons.shortcut getVars="{0: 'route', 1: 'myOwnPrefix'}" setVars="{0: 'function'}" />
Shortcut button as known from the TYPO3 backend. This time only the specified GET parameters and SET[]-settings will be stored.
Note
Normally you won't need to set getVars & setVars parameters in Extbase modules.
Source code
Go to the source code of this ViewHelper: ShortcutViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
getVars
-
- Type
- mixed
- Default
array
()
List of GET variables to store. By default the current id, module and all module arguments will be stored
setVars
-
- Type
- mixed
- Default
array
()
List of SET[] variables to store. See ModuleTemplate::makeShortcutIcon(). Normally won't be used by Extbase modules