[TYPO3-english] addJsFooterFile() not working in BE but addJsFile() does?

Jan Kornblum jan.kornblum at gmx.de
Tue Dec 3 18:08:52 CET 2013


Hi newsgroup,

i have to add js files to a backend module. Related to some examples 
i've written a ViewHelper:

if(TYPO3_MODE === 'FE'){
	$GLOBALS['TSFE']->getPageRenderer()->addJsFooterFile($path, NULL, 
FALSE, FALSE, '', TRUE);
}else{
	$doc = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('template');
	$pageRenderer = $doc->getPageRenderer();
	$pageRenderer->addJsFooterFile($path, NULL, FALSE, FALSE, '', TRUE);
}

But the files doesn't get included at all. Instead, when i use...

$pageRenderer->addJsFile($path, NULL, FALSE, FALSE, '', TRUE);

...the file gets included. Isn't it possible to include JS files into 
the footer in a BE module? In FE everything works fine...

I am using TYPO3 6.1.5.

Kind regards, Jan




More information about the TYPO3-english mailing list