[TYPO3] includeJS and includeCSS including files in the wrong order!

Dmitry Dulepov [typo3] dmitry at typo3.org
Tue Jun 17 12:41:07 CEST 2008


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/


More information about the TYPO3-english mailing list