[TYPO3-english] Put javascript in main page

Sergey Alexandrov serg at alexandrov.us
Wed Mar 9 18:41:57 CET 2011


Number of ways:

1. Put it directly into HTML template

2. in the setup, marker like
         SCRIPT = TEXT
         SCRIPT.value (
             ... your stuff here ...
         )

3. From withing your plugin, like
     $GLOBALS['TSFE']->additionalHeaderData["js"] = '<script 
type="text/javascript" 
src="'.t3lib_extMgm::siteRelPath($this->extKey).'swfobject.js"></script>';

4. GLOBALS['TSFE']->additionalJavaScript[] which is an array

5....877,000: http://www.google.com/search?q=typo3+add+javascript

:)

On 3/9/2011 12:27 PM, siddhant tewari wrote:
> hi ,
>      Can anyone suggest me how can one put javascript in the main page
> of the website hosted with typo3 CMS.
>
> regards
> Siddhant
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list