ContainerViewHelper extends AbstractBackendViewHelper

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

Deprecated

since v11, will be removed in v12.

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 :file:EXT:your_extension/Resources/Public/Css/styles.css and JavaScript files :file:EXT:your_extension/Resources/Public/JavaScript/Library1.js and :file:EXT:your_extension/Resources/Public/JavaScript/Library2.js will be loaded, plus some inline labels for usage in JS code.

Table of Contents

Properties

$escapeOutput  : bool

Methods

getModuleTemplate()  : ModuleTemplate
Gets instance of template if exists or create a new one.
getPageRenderer()  : PageRenderer
Gets instance of PageRenderer if exists or create a new one.
initializeArguments()  : mixed
Initialize arguments.
render()  : string
Render start page with \TYPO3\CMS\Backend\Template\ModuleTemplate and pageTitle

Properties

$escapeOutput

protected bool $escapeOutput = false

Methods

getModuleTemplate()

Gets instance of template if exists or create a new one.

public getModuleTemplate() : ModuleTemplate

Saves instance in viewHelperVariableContainer

Return values
ModuleTemplate

getPageRenderer()

Gets instance of PageRenderer if exists or create a new one.

public getPageRenderer() : PageRenderer

Saves instance in viewHelperVariableContainer

Return values
PageRenderer

initializeArguments()

Initialize arguments.

public initializeArguments() : mixed
Tags
throws
Exception

render()

Render start page with \TYPO3\CMS\Backend\Template\ModuleTemplate and pageTitle

public render() : string
Tags
see
PageRenderer
Return values
string

        
On this page

Search results