be.container

ViewHelper which allows you to create extbase based modules in the style of TYPO3 default modules.

Examples

Simple:

<f:be.container>your module content</f:be.container>

“your module content” wrapped with proper head & body tags. Default backend CSS styles and JavaScript will be included.

All options:

<f:be.container 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'}"
>
    your module content
</f:be.container>

“your module content” wrapped with proper head & body tags. Custom CSS file EXT:your_extension/Resources/Public/Css/styles.css and JavaScript files EXT:your_extension/Resources/Public/JavaScript/Library1.js and EXT:your_extension/Resources/Public/JavaScript/Library2.js will be loaded, plus some inline labels for usage in JS code.

Arguments

pageTitle

DataType
string
Required
false
Description
Title tag of the module. Not required by default, as BE modules are shown in a frame

includeCssFiles

DataType
mixed
Required
false
Description
List of custom CSS file to be loaded

includeJsFiles

DataType
mixed
Required
false
Description
List of custom JavaScript file to be loaded

addJsInlineLabels

DataType
mixed
Required
false
Description
Custom labels to add to JavaScript inline labels

includeRequireJsModules

DataType
mixed
Required
false
Description
List of RequireJS modules to be loaded