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.pageRenderer ViewHelper <f:be.pageRenderer>
ViewHelper to register backend module resources like CSS and JavaScript using the PageRenderer.
Examples
All options:
<f:be.pageRenderer pageTitle="foo"
includeCssFiles="{0: '{f:uri.resource(path:\'Css/Styles.css\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'}"
addJsInlineLabels="{0: 'label1', 1: 'label2'}" />
Custom CSS file EXT:
and
JavaScript files EXT:
and
EXT:
will be loaded, plus some inline labels for usage in JS code.
Source code
Go to the source code of this ViewHelper: PageRendererViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
pageTitle
-
- Type
- string
Title tag of the module. Not required by default, as BE modules are shown in a frame
includeCssFiles
-
- Type
- mixed
List of custom CSS file to be loaded
includeJsFiles
-
- Type
- mixed
List of custom JavaScript file to be loaded
addJsInlineLabels
-
- Type
- mixed
Custom labels to add to JavaScript inline labels
includeRequireJsModules
-
- Type
- mixed
List of RequireJS modules to be loaded
addInlineSettings
-
- Type
- mixed
Adds Javascript Inline Setting