[TYPO3-dev] Need little help for including inlineJS and js file in header

Gianluca Strafella gianluca.strafella at webformat.com
Wed Oct 9 13:53:20 CEST 2013


Hi Stephan,
in TYPO3 you can include javascript or css in a page,using Typoscript:

page.includeJS.somejs =  EXT:your_ext/Resources/Public/Javascript/YourJS.js
page.includeCSS.somecss = 
EXT:your_ext/Resources/Public/Javascript/YourCss.css

Regards,
Gianluca

Gianluca Strafella

Software Developer
gianluca.strafella at webformat.com
Tel.   +39-0427-926.389

WEBFORMAT srl – www.webformat.com
Via S. Francesco d'Assisi, 6 – 20122 MILANO
Corte Europa, 12 - 33097 SPILIMBERGO (PN)


Il 08/10/2013 10:32, Stefan Kruse ha scritto:
> Hi,
> i need to include some inlieJs in the header where i define some
> variables. But after that i need to include one css file.
> Something like that.
>
>
> <script>
>   var a = 'fd';
> var b = 'rtr';
> </script>
>
> <script src="path/to/file.js"></script>
>
> Is the only way to do this with headerData or is there another better way?
> Thanks Stefan



More information about the TYPO3-dev mailing list