TYPO3
7.6
|
Public Member Functions | |
render ($pageTitle= '', $enableClickMenu=true, $loadExtJs=false, $loadExtJsTheme=true, $enableExtJsDebug=false, $loadJQuery=false, $includeCssFiles=null, $includeJsFiles=null, $addJsInlineLabels=null, $includeRequireJsModules=null) | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractViewHelper | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Protected Member Functions inherited from 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 AbstractViewHelper | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
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 49 of file fluid/Classes/ViewHelpers/Be/ContainerViewHelper.php.
render | ( | $pageTitle = '' , |
|
$enableClickMenu = true , |
|||
$loadExtJs = false , |
|||
$loadExtJsTheme = true , |
|||
$enableExtJsDebug = false , |
|||
$loadJQuery = false , |
|||
$includeCssFiles = null , |
|||
$includeJsFiles = null , |
|||
$addJsInlineLabels = null , |
|||
$includeRequireJsModules = null |
|||
) |
Render start page with and pageTitle
string | $pageTitle | title tag of the module. Not required by default, as BE modules are shown in a frame |
bool | $enableClickMenu | If TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE |
bool | $loadExtJs | specifies whether to load ExtJS library. Defaults to FALSE |
bool | $loadExtJsTheme | whether to load ExtJS "grey" theme. Defaults to FALSE |
bool | $enableExtJsDebug | if TRUE, debug version of ExtJS is loaded. Use this for development only |
bool | $loadJQuery | whether to load jQuery library. Defaults to FALSE |
array | $includeCssFiles | List of custom CSS file to be loaded |
array | $includeJsFiles | List of custom JavaScript file to be loaded |
array | $addJsInlineLabels | Custom labels to add to JavaScript inline labels |
array | $includeRequireJsModules | List of RequireJS modules to be loaded |
Definition at line 68 of file fluid/Classes/ViewHelpers/Be/ContainerViewHelper.php.
References AbstractViewHelper\renderChildren(), and LocalizationUtility\translate().