[TYPO3-english] Include JavaScript

Kay Strobach typo3 at kay-strobach.de
Tue Mar 13 11:31:53 CET 2012


Hi,

In An Extenion you may call the pagerenderer and add a script file
($this->doc->getPageRenderer() in pibase class).

http://api.typo3.org/typo3v4/45/html/classt3lib___page_renderer.html

in pure ts use the following snippet:

http://blog.chandanweb.com/typo3/how-to-include-multiple-css-and-js-files-using-typoscript


PS: it's common to say "hi" or "hello" in the beginning of a  question
in this list ;)

Regards
Kay

Am 13.03.2012 10:31, schrieb Theo Kotey:
> I have include some JavaScript files in my templates but they do not
> work when I run the website and test the forms. How do you include JS
> files in Typo3 so that they work properly.
> 
> Thanks
> Theo


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful: https://flattr.com/profile/kaystrobach


More information about the TYPO3-english mailing list