[TYPO3-dev] adding a javascript file so that it is merged with the other ones
Viktor Livakivskyi
invisible.kinder at gmail.com
Thu Oct 2 11:49:41 CEST 2014
Hi, Ivano.
The soultion depends on how your extensions is built.
If you're using piBase with marker/subpart templating, the only way afaik, will be sugested: $GLOBALS['TSFE']->getPageRenderer()->addJsFile($resolved);
But, if you're using Fluid for templates, you can use VHS viewHelper asset [1] [2]
This will give you a high flexibility in CSS/JS inclusion and it will be up to you: merge or do not merge included file with other files.
[1]: http://fluidtypo3.org/viewhelpers/vhs/master/Asset/ScriptViewHelper.html
[2]: https://github.com/FluidTYPO3/vhs#assets
More information about the TYPO3-dev
mailing list