[TYPO3-dev] $GLOBALS['TSFE']->additionalHeaderData and order
Steffen Kamper
steffen at sk-typo3.de
Mon Aug 6 18:53:35 CEST 2007
Hi Popy,
"Popy" <popy.dev at gmail.com> schrieb im Newsbeitrag
news:mailman.306.1186404224.14781.typo3-dev at lists.netfielders.de...
> By sorting the array by yourself, or using array_splice to insert your JS
> somewhere :)
>
that is logic and sounds more easy as it is. The problem is - module2 is
initialized earlier as mainmodule, so the basic JS isn't known there.
Because that i tried with the numeric array.
How do i collect all needed JS from all my (independent) modules ?
vg Steffen
> 2007/8/6, Steffen Kamper <steffen at sk-typo3.de>:
>>
>> Hi,
>>
>> i have an extension with some modules. In the basic module i include
>> needed
>> JS via $GLOBALS['TSFE']->additionalHeaderData
>> Now i set something in another module, which has to be after the basic
>> include - I wasn't able to. I tried with array numbers like
>>
>> $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId][0]='...' #basic
>> $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId][10]='...' #later
>>
>> but it has no affect. I looked into fe-class and it seems to be a simple
>> implode with chr(10), so why is my "later" addition included first ?
>> How can i control this best ?
>>
>> thx,
>> vg Steffen
>>
>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>>
>
>
>
> --
> Popy
>
> Vulnerant omnes, ultima necat.
>
> http://popy.sytes.net
More information about the TYPO3-dev
mailing list