[TYPO3] Writing a plugin: what is editorcfg.txt and how to attach a JS and CSS file

Cyprian Kowalczyk cyprian at pi2.pl
Thu May 4 15:11:20 CEST 2006


On Thu, 04 May 2006 14:54:15 +0200, Casper Valdemar Poulsen  
<casper at grz.dk> wrote:

> $GLOBALS['TSFE']->additionalHeaderData["1234"] = '<script  
> type="text/javascript" src="'.t3lib_extMgm::siteRelPath("extname").'pi1/
> javalicious.js"></script>';

Thanks!

Are there any coding guidelines about where I should put this? (class'  
main() function?)

About:
$GLOBALS['TSFE']->additionalHeaderData["1234"]
Isn't it that other extension (or whatever) may pick a number (1234) and  
override my value?
Is there a way to add next 'additionalHeaderData' (without specyfing the  
array key)?


-- 

regards, Cyprian
http://pi2.pl ~ π^2 design project

TYPO3 4.0 @ MAMP1.1 [Apache/2.0.54 (Unix) + PHP/5.0.4 DAV/2  
+ MySQL/4.1.12] @ MacOS X 10.4



More information about the TYPO3-english mailing list