0
votes

I need to add a custom js file in my backend module of TYPO3 v7.6 extension.I added the following code in my layout

<f:be.container includeJsFiles="{0:'{f:uri.resource(path:\'Js/Main.js\')}'}">
  <!------------  Contents    ------------>
</f:be.container> 

No error but the js file is not included in page source.Any other method is there to implement my requirement?

1

1 Answers

3
votes

I would assume the path to the JS-file is wrong.
With your declaration it is expected to be EXT:your_extension/Resources/Public/Js/Main.js in your extension (as statet in the core sources).
But when in doubt I would try some other pathes. (full references)