X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/7e200780e655c036b1711d44c3ca1cd1c30684b0..708e925fafa9c095458b2e6ec18e3d6e0b69445a:/typo3/template.php diff --git a/typo3/template.php b/typo3/template.php index 230e9dc979b7..4155373ac834 100644 --- a/typo3/template.php +++ b/typo3/template.php @@ -244,6 +244,8 @@ class template { protected $pageRenderer; protected $pageHeaderFooterTemplateFile = ''; // alternative template file + protected $extDirectStateProvider = FALSE; + /** * Whether flashmessages should be rendered or not * @@ -337,7 +339,14 @@ class template { - + /** + * Sets inclusion of StateProvider + * + * @return void + */ + public function setExtDirectStateProvider() { + $this->extDirectStateProvider = TRUE; + } @@ -808,6 +817,14 @@ class template { // add docstyles $this->docStyle(); + if ($this->extDirectStateProvider) { + $this->pageRenderer->addJsFile( + $this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.ExtDirectStateProvider', + NULL, + FALSE + ); + $this->pageRenderer->addJsFile($this->backPath . '../t3lib/js/extjs/ExtDirect.StateProvider.js'); + } // add jsCode for overriding the console with a debug panel connection $this->pageRenderer->addJsInlineCode(