5

I am working with TYPO3 CMS. I would like to add external JavaScript and CSS into a backend module, but I am actually not sure how to add these. Could you guide me how to implement that?

Oliver Hader
  • 4,093
  • 1
  • 25
  • 47
KOCH DOEUN
  • 137
  • 1
  • 7

1 Answers1

7

Via FLUID template fx: Layout/Default.html

<f:be.container
  includeCssFiles="{0: '{f:uri.resource(path:\'Css/Styles.css\')}'}"
  includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'}">
your module content
</f:be.container>
jokumer
  • 2,249
  • 11
  • 22
  • 1
    The `f:be.container` view-helper also adds additional boilerplate markup that is used for backend modules (header,footer, ...). It's possible to use `f:be.pageRenderer` as an alternative which just concerns the resource loading aspects of stylesheet and JavaScript files. – Oliver Hader Oct 14 '16 at 08:28