[TYPO3] Writing a plugin: what is editorcfg.txt and how to attach a JS and CSS file
Casper Valdemar Poulsen
casper at grz.dk
Thu May 4 14:54:15 CEST 2006
Cyprian Kowalczyk wrote:
> Where should I look in order to learn how attach a JS and CSS file via
> my plugin to page's header?
Try this,
$GLOBALS['TSFE']->additionalHeaderData["1234"] = '<script
type="text/javascript"
src="'.t3lib_extMgm::siteRelPath("extname").'pi1/javalicious.js"></script>';
Dunno where I found it, I just recently had to do it myself.
--
Med Venlig Hilsen / Kind Regards
Casper Valdemar Poulsen
casper at grz.dk
More information about the TYPO3-english
mailing list