Documentation · ViewHelper reference

Be / ContainerViewHelper

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



<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" enableClickMenu="false" loadExtJs="true" loadExtJsTheme="false" extJsAdapter="jQuery" enableExtJsDebug="true" loadJQuery="true" 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 ExtJS and jQuery and some inline labels for usage in JS code.

  • Tag usage example

    <f:be.container pageTitle="''" enableClickMenu="1" loadExtJs="1" loadExtJsTheme="1" enableExtJsDebug="1" loadJQuery="1" includeCssFiles="{foo: 'bar'}" includeJsFiles="{foo: 'bar'}" addJsInlineLabels="{foo: 'bar'}" includeRequireJsModules="{foo: 'bar'}" jQueryNamespace="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {f:be.container(pageTitle: '''', enableClickMenu: 1, loadExtJs: 1, loadExtJsTheme: 1, enableExtJsDebug: 1, loadJQuery: 1, includeCssFiles: {foo: 'bar'}, includeJsFiles: {foo: 'bar'}, addJsInlineLabels: {foo: 'bar'}, includeRequireJsModules: {foo: 'bar'}, jQueryNamespace: 'NULL')}


Argument Description Type

Custom labels to add to JavaScript inline labels


If TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE


if TRUE, debug version of ExtJS is loaded. Use this for development only


List of custom CSS file to be loaded


List of custom JavaScript file to be loaded


List of RequireJS modules to be loaded


Store the jQuery object in a specific namespace


specifies whether to load ExtJS library. Defaults to FALSE


whether to load ExtJS "grey" theme. Defaults to FALSE


whether to load jQuery library. Defaults to FALSE


title tag of the module. Not required by default, as BE modules are shown in a frame

Required attribute

Revision history

commit ff44e717bfec159d9ce96917bd10c26bf613672b
Author: Bastian Waidelich <*****>
Date:   Wed Sep 23 15:33:06 2009 +0000

    [+FEATURE] Fluid(ViewHelpers): Added BE view helpers be.container, be.buttons.csh, be.buttons.icon, be.menus.actionMenu, be.pageInfo & be.tableList. NOTE: BE view helpers are still experimental and subject of change!
    [+FEATURE] Fluid(ViewHelpers): TranslateViewHelper now fully works in BE mode and respects BE user language. This relates to #3292
    [~BUGFIX] Fluid(ViewHelpers): Email addresses are now prepend with "mailto:" in view helper (BE mode)
    [+TASK] Fluid(ViewHelpers): uri.resource view helper now prepends "../" to relative URIs in BE mode
    [~BUGFIX] Fluid(Tests): Fixed some unit tests so that they run green. We still need more tests and a way to simulate FE mode from phpunit.

commit 7e4a8c74cd7d9ab0c65891fde6a5c0f1f701c867
Author: Jochen Rau <*****>
Date:   Tue Oct 6 08:43:36 2009 +0000

    [~TASK] Fluid: Tweaked icon.
    [~TASK] Fluid: Recreated ext_autoload.php.

commit 9b2830bc1c17588dd69a463773c5f05f61b5cf94
Author: Sebastian Kurfürst <*****>
Date:   Sat Oct 24 11:01:38 2009 +0000

    * A*****@api annotations
    * Changed the fluid-specific RuntimeException to SPL's RuntimeException.

commit 5a15461306135913eb4ab285243260097a74b969
Author: Sebastian Kurfürst <*****>
Date:   Thu Nov 5 10:32:57 2009 +0000

    [!!!][+BUGFIX] Fluid (ViewHelpers): FIxed the Resource ViewHelper to be in sync with FLOW3 again. This means that instead of writing <f:uri.resource>...</f:uri.resource>, you write <f:uri.resource path="..." /> or {f:uri.resource(path:'...')}. Resolves #5237.

commit 1d36de6ed90007e324b773782e8f0a1d1c1191a2
Author: Bastian Waidelich <*****>
Date:   Tue Jul 13 10:12:30 2010 +0000

    [-TASK] Fluid: R*****@package/@subpackage annotations from all Fluid classes. They have already been removed in FLOW3 packages in r2813.

commit 3a0f5e514c4f75dbe1a4b72dea68b0c83bf13cf6
Author: Bastian Waidelich <*****>
Date:   Thu Jul 15 15:08:09 2010 +0000

    [+BUGFIX] Fluid (ViewHelpers): Reversed the rendering order of header and childNodes in be.container ViewHelper to enable child nodes to modify the pageRenderer. This resolves #8880 (thanks to Andreas Wolf)

commit dd8928aed4c119d8db37322acb91ded24ba5cc35
Author: Bastian Waidelich <*****>
Date:   Thu Dec 30 16:21:11 2010 +0000

    [+TASK] Fluid (ViewHelpers): Fix, cleanup and extend inline documentation of ViewHelpers
    Resolves #10908

commit 9f603b1f9746b2d7d5a024609ab27d429378b7d1
Author: Stefan Neufeind <*****>
Date:   Sat Jun 11 16:43:35 2011 +0200

    [BUGFIX] Fix documentation for BE-ViewHelpers
    Change-Id: I483d6242b1a35fe3bbfb8a90b193dee0f413108e
    Resolves: #9942

commit fd09d197fa8886b97cb20aa9573f39cd08ce989e
Author: Bastian Waidelich <*****>
Date:   Thu Nov 10 18:27:58 2011 +0100

    [TASK] S*****@author annotations
    This backports three recent changes of the TYPO3.Fluid package:
    - R*****@license annotation from files (290f4f5)
    - Simplify license header in PHP files (14bacba)
    - D*****@author tags from source code (9c2e837)
    This should not contain any functional change!
    Change-Id: I9376dca4af78c4f0f82413011d115b8ad04634dd

commit ec3891d8d4e339d8319428211207e6201be9fd73
Author: Thomas Maroschik <*****>
Date:   Wed Oct 17 21:18:26 2012 +0200

    [TASK][WIP] Move non class code back to source files
    Change-Id: I620d2e61860142cdc89cc83474c95542799961c0

commit 554e8f890dcc0dd86a27518b58e2b54be26fd37e
Author: Thomas Maroschik <*****>
Date:   Wed Oct 17 22:20:17 2012 +0200

    [TASK] Namespace classes
    Change-Id: Ia7432e1c923826ed58206bca15fb94509adbd508

commit 547ef7f60f39c6bfcb0376e5e76070da85860098
Author: Arvid Jakobsson <*****>
Date:   Mon Sep 17 21:25:51 2012 +0200

    [TASK] Remove superfluous parenthesis in sysexts
    Superfluous brackets in fluid after namespaces move
    Change ("a" . "b") . "c" into "a" . "b" . "c" using the lex-pass tool.
    Resolves: #41016
    Related: #40095
    Releases: 6.0
    Change-Id: I64741473cb24eda343f0576ebd1a0f1846dfc3f8
    Reviewed-by: Oliver Hader
    Tested-by: Oliver Hader

commit 9d13dedf017b614b834261b1bf5d4acb2201f1d4
Author: Alexander Schnitzler <*****>
Date:   Fri Nov 16 19:49:02 2012 +0100

    [CLEANUP] Replace FLOW3 with TYPO3 Flow
    Releases: 6.0
    Fixes: #43036
    Change-Id: I62df23587301b4cde3ddeae3686b34f54fe1182e
    Reviewed-by: Alexander Schnitzler
    Tested-by: Alexander Schnitzler

commit 9d46e6932d35c79bf87c96fa38b8e537c4192f23
Author: Alexander Schnitzler <*****>
Date:   Tue Nov 20 16:27:02 2012 +0100

    [CLEANUP] Adjust code to CGL and fix small namespace bugs
    * whitespaces, tabs and blank line issues
    * bool -> boolean
    * int -> integer
    * fix wrong namespace annotations
    Fixes: #43157
    Releases: 6.0
    Change-Id: I8397948e19248db029d8efd1555ee56e4982742d
    Reviewed-by: Helmut Hummel
    Tested-by: Helmut Hummel

commit 3355f39561b079433387ca7b34f6210902bc8601
Author: Christian Kuhn <*****>
Date:   Thu Apr 11 19:54:03 2013 +0200

    [TASK] Update t3lib mentions
    Some core parts still mention t3lib classes after namespaces,
    mostly in comments.
    Related: #47138
    Releases: 6.1
    Change-Id: I6e732159f92fb539462eba93f8578d90be097327
    Reviewed-by: Anja Leichsenring
    Tested-by: Anja Leichsenring

commit 15871be2bc4cb74d47039fe567c955094ec206af
Author: Wouter Wolters <*****>
Date:   Fri May 17 19:54:19 2013 +0200

    [TASK] Remove mention of template.php
    template.php is removed from core. Rename this to
    Change-Id: Ie8378f4951abdfc825c1222861253228ae66e350
    Resolves: #48372
    Releases: 6.2
    Reviewed-by: Wouter Wolters
    Tested-by: Wouter Wolters

commit 99b442068841ac197efe089cf4d64c94e5f11764
Author: Felix Kopp <felix-*****>
Date:   Sat Jun 22 19:24:40 2013 +0200

    [TASK] Move ExtJS- & JavaScript from t3lib
    Moves JavaScript files and their corresponding includes.
    As a result the t3lib directory is removed completely.
    Change-Id: I77938f43f15e8293c1439a55b2b7716d764d339b
    Resolves: #49342
    Releases: 6.2
    Reviewed-by: Philipp Gampe
    Tested-by: Philipp Gampe
    Reviewed-by: Anja Leichsenring
    Tested-by: Anja Leichsenring

commit 81244d3727ae950c9a52adc04d7c73689218e46d
Author: Francois Suter <*****>
Date:   Sat Jul 6 22:40:09 2013 +0200

    [FEATURE] Improve BE container view helper
    Improve the features provided by the BE container view helper
    so that extensions don't need to provide their own so often.
    Added features:
    - load several JS and CSS files instead of just one
    - load jQuery
    - load some inline language labels
    Note: the old way of loading a single JS and CSS file is preserved
    for backwards compatibility, but marked as deprecated.
    With this patch all BE modules in the Core can use the default
    BE container view helper. The Extension Manager needs some special
    initialization which is moved to a dedicated view helper.
    The customized BE container view helpers are removed.
    Resolves: #49749
    Releases: 6.2
    Change-Id: I236134451a31f08afe5886337cfb1144dac7ad90
    Reviewed-by: Wouter Wolters
    Tested-by: Wouter Wolters
    Reviewed-by: Christian Kuhn
    Tested-by: Christian Kuhn
    Reviewed-by: Felix Kopp
    Tested-by: Felix Kopp

commit 77f29a3c69a7cbb27b34072754aa503bace6c9f1
Author: Christian Kuhn <*****>
Date:   Tue Oct 1 14:40:56 2013 +0200

    [TASK] Remove closing PHP tags
    Change-Id: Iaa92566c53301e49396fc9fb26b0b339c48d567b
    Resolves: #52360
    Releases: 6.2
    Reviewed-by: Christian Kuhn
    Tested-by: Christian Kuhn
    Reviewed-by: Ernesto Baschny
    Tested-by: Ernesto Baschny
    Reviewed-by: Anja Leichsenring
    Tested-by: Anja Leichsenring

commit 166331c2eebee2702f1096a9884ab8cae505d4b3
Author: Benjamin Mack <*****>
Date:   Sat Mar 8 11:43:06 2014 +0100

    [CLEANUP] Cleanup jumpToUrl() and unused JS in Backend
    The jumpToUrl() is defined in every
    second module as inline JS. As the
    duplicated code is erroneous and
    can be shimmed completely, the
    function is added to every doc-template
    code by default, but can be overriden and
    removed completely - which is still the case
    in some existing modules.
    Additionally the variable "script_ended"
    is not used at all anymore, and was removed
    as well.
    Releases: 6.2
    Resolves: #56667
    Change-Id: I716611bffce402c5f423c3d64c763d6675a79d14
    Reviewed-by: Markus Klein
    Tested-by: Markus Klein
    Reviewed-by: Anja Leichsenring
    Tested-by: Anja Leichsenring

commit 8f7165166d95742d60af45b4c0418db68966d712
Author: Nico de Haen <*****>
Date:   Mon Apr 21 11:52:37 2014 +0200

    [TASK] Make includeCsh configurable in ContainerViewHelper
    The container ViewHelper does not provide a configuration
    attribute for includeCsh (Context sensitive help). As consequence
    ExtJS and ExtDirect code is always loaded in Backend Modules.
    Resolves: #58075
    Releases: 6.2
    Change-Id: I1978bdc0bf3fca40f78cdae9b214a808f58abe49
    Reviewed-by: Wouter Wolters
    Tested-by: Wouter Wolters
    Reviewed-by: Stefan Neufeind
    Tested-by: Stefan Neufeind