Created
December 3, 2015 14:22
-
-
Save vijayrami/8fbf82e266342dcf5f63 to your computer and use it in GitHub Desktop.
How To Add Javascript File From Typo3 Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add Below line in your typo3 extension controller file. | |
| $GLOBALS['TSFE']->getPageRenderer()->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('extension_key') . 'Resources/Public/javascript/yourjsfile.js',$compress = FALSE, $forceOnTop = FALSE, $allWrap = ''); | |
| -- Change Extension key and your JS file path. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment