[Typo3-dev] Error including JS in headerData

Michael Stucki michael at typo3.org
Sun May 1 14:17:15 CEST 2005


Hi Michael,

> I need to dynamically place JS code in the page header within a fe
> plugin, like this
> 
> $GLOBALS['TSFE']->pSetup['headerData.'][$levelHeaderData.'.']['value'] =
> $jsCode;

You can add the JavaScript code to
$GLOBALS['TSFE']->additionalJavaScript['your_key'].

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list