[TYPO3] includeJS and includeCSS including files in the wrong order!
Esben Maaløe
acebone at gmail.com
Tue Jun 17 13:25:43 CEST 2008
Works like a charm!
Thank you :-)
Esben
On Tue, Jun 17, 2008 at 12:41 PM, Dmitry Dulepov [typo3]
<dmitry at typo3.org> wrote:
> Hi!
>
> Esben Maaløe wrote:
>> In the following script i include some JavaScript and some CSS on ALL
>> pages. One specific page needs some additional JS and CSS. I check for
>> the PID and include the extra files if the PID is that of my special
>> page.
>>
>> However - the order of the includes are reversed, the special page
>> includes it's special files FIRST and then the general files. That's
>> not good because I want the generic JS and CSS first and then
>> modify/add to it.
>
> The inclusion order is not defined if you use includeJS/includeCSS.
>
>> How can I control the order of includes?
>
> Use page.headerData instead.
>
> --
> Dmitry Dulepov
> E-mail: dmitry at typo3.org
> Skype: callto:liels_bugs
> TYPO3 technical: http://typo3bloke.net/
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list