/** * Render start page with \TYPO3\CMS\Backend\Template\DocumentTemplate and pageTitle * * @param string $pageTitle title tag of the module. Not required by default, as BE modules are shown in a frame * @param bool $enableClickMenu If TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE * @param bool $loadExtJs specifies whether to load ExtJS library. Defaults to FALSE * @param bool $loadExtJsTheme whether to load ExtJS "grey" theme. Defaults to FALSE * @param bool $enableExtJsDebug if TRUE, debug version of ExtJS is loaded. Use this for development only * @param bool $loadJQuery whether to load jQuery library. Defaults to FALSE * @param array $includeCssFiles List of custom CSS file to be loaded * @param array $includeJsFiles List of custom JavaScript file to be loaded * @param array $addJsInlineLabels Custom labels to add to JavaScript inline labels * @param array $includeRequireJsModules List of RequireJS modules to be loaded * @param array $addJsInlineLabelFiles List of files containing custom labels to add to JavaScript inline labels * @param string $addJsInline Custom inline JavaScript * @return string * @see \TYPO3\CMS\Backend\Template\DocumentTemplate * @see \TYPO3\CMS\Core\Page\PageRenderer */ public function render($pageTitle = '', $enableClickMenu = true, $loadExtJs = false, $loadExtJsTheme = true, $enableExtJsDebug = false, $loadJQuery = false, $includeCssFiles = null, $includeJsFiles = null, $addJsInlineLabels = null, $includeRequireJsModules = null, $addJsInlineLabelFiles = null, $addJsInline = null) { if (is_array($addJsInlineLabelFiles)) { foreach ($addJsInlineLabelFiles as $addJsInlineLabelFile) { $this->getPageRenderer()->addInlineLanguageLabelFile($addJsInlineLabelFile['file'], $addJsInlineLabelFile['prefix']); } } $content = parent::render($pageTitle, $enableClickMenu, $loadExtJs, $loadExtJsTheme, $enableExtJsDebug, $loadJQuery, $includeCssFiles, $includeJsFiles, $addJsInlineLabels, $includeRequireJsModules); $doc = $this->getDocInstance(); $doc->JScode .= $doc->wrapScriptTags($addJsInline); return $doc->insertStylesAndJS($content); }
/** * Call parent::render() and fill parameters dynamically * Number of parameters and their sorting depends on * TYPO3 version * * @param array $includeCssFiles List of custom CSS file to be loaded * @param array $includeJsFiles List of custom JavaScript file to be loaded * @param boolean $enableClickMenu If TRUE, loads clickmenu.js required by BE context menus. Defaults to TRUE * @param boolean $loadExtJs specifies whether to load ExtJS library. Defaults to FALSE * @param boolean $loadExtJsTheme whether to load ExtJS "grey" theme. Defaults to FALSE * @param boolean $enableExtJsDebug if TRUE, debug version of ExtJS is loaded. Use this for development only * @param boolean $loadJQuery whether to load jQuery library. Defaults to FALSE * @param string $jQueryNamespace Store the jQuery object in a specific namespace * @param string $pageTitle title tag of the module. Not required by default, as BE modules are shown in a frame * @return string */ public function render($includeCssFiles = null, $includeJsFiles = null, $enableClickMenu = false, $loadExtJs = false, $loadExtJsTheme = false, $enableExtJsDebug = false, $loadJQuery = false, $jQueryNamespace = null, $pageTitle = '') { $this->includeCssFiles = $includeCssFiles; $this->includeJsFiles = $includeJsFiles; $this->enableClickMenu = $enableClickMenu; $this->loadExtJs = $loadExtJs; $this->loadExtJsTheme = $loadExtJsTheme; $this->enableExtJsDebug = $enableExtJsDebug; $this->loadJQuery = $loadJQuery; $this->jQueryNamespace = $jQueryNamespace; $this->pageTitle = $pageTitle; return parent::render($this->getArgumentForKey(0), $this->getArgumentForKey(1), $this->getArgumentForKey(2), $this->getArgumentForKey(3), $this->getArgumentForKey(4), $this->getArgumentForKey(5), $this->getArgumentForKey(6), $this->getArgumentForKey(7), $this->getArgumentForKey(8), $this->getArgumentForKey(9), $this->getArgumentForKey(10), $this->getArgumentForKey(11), $this->getArgumentForKey(12), $this->getArgumentForKey(13), $this->getArgumentForKey(14), $this->getArgumentForKey(15), $this->getArgumentForKey(16), $this->getArgumentForKey(17)); }