TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Fluid\ViewHelpers\Be\ContainerViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\ContainerViewHelper:
TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper TYPO3\CMS\Filelist\ViewHelpers\Be\ContainerViewHelper

Public Member Functions

 render ($pageTitle='', $enableClickMenu=true, $loadExtJs=false, $loadExtJsTheme=true, $enableExtJsDebug=false, $loadJQuery=false, $includeCssFiles=null, $includeJsFiles=null, $addJsInlineLabels=null, $includeRequireJsModules=null, $jQueryNamespace=null)
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 setArguments (array $arguments)
 
 setRenderingContext (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 isEscapingInterceptorEnabled ()
 
 setViewHelperNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node)
 
 setRenderChildrenClosure (\Closure $renderChildrenClosure)
 
 initializeArgumentsAndRender ()
 
 initialize ()
 
 renderChildren ()
 
 prepareArguments ()
 
 validateArguments ()
 
 initializeArguments ()
 
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode, \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode, \TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 
 resetState ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
static renderStatic (array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 registerArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 overrideArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 callRenderMethod ()
 
 getLogger ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Detailed Description

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

= Examples =

<f:be.container>your module content</f:be.container> <output> "your module content" wrapped with proper head & body tags. Default backend CSS styles and JavaScript will be included </output>

<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> <output> "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. </output>

Definition at line 50 of file ContainerViewHelper.php.

Member Function Documentation

◆ render()

TYPO3\CMS\Fluid\ViewHelpers\Be\ContainerViewHelper::render (   $pageTitle = '',
  $enableClickMenu = true,
  $loadExtJs = false,
  $loadExtJsTheme = true,
  $enableExtJsDebug = false,
  $loadJQuery = false,
  $includeCssFiles = null,
  $includeJsFiles = null,
  $addJsInlineLabels = null,
  $includeRequireJsModules = null,
  $jQueryNamespace = null 
)

Render start page with and pageTitle

Parameters
string$pageTitletitle tag of the module. Not required by default, as BE modules are shown in a frame
bool$enableClickMenuIf TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE
bool$loadExtJsspecifies whether to load ExtJS library. Defaults to FALSE
bool$loadExtJsThemewhether to load ExtJS "grey" theme. Defaults to FALSE
bool$enableExtJsDebugif TRUE, debug version of ExtJS is loaded. Use this for development only
bool$loadJQuerywhether to load jQuery library. Defaults to FALSE
array$includeCssFilesList of custom CSS file to be loaded
array$includeJsFilesList of custom JavaScript file to be loaded
array$addJsInlineLabelsCustom labels to add to JavaScript inline labels
array$includeRequireJsModulesList of RequireJS modules to be loaded
string$jQueryNamespaceStore the jQuery object in a specific namespace
Returns
string
See also

Definition at line 70 of file ContainerViewHelper.php.

References TYPO3\CMS\Core\Page\PageRenderer\JQUERY_NAMESPACE_DEFAULT, TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\renderChildren(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().