Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add external JavaScript and CSS into backend module in TYPO3

Tags:

typo3

fluid

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?

like image 752
KOCH DOEUN Avatar asked Oct 14 '16 04:10

KOCH DOEUN


1 Answers

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>
like image 105
jokumer Avatar answered Dec 21 '22 16:12

jokumer