[TYPO3-project-4-3] CSS and JS files get included in the wrong order if using the page-renderer
Steffen Kamper
info at sk-typo3.de
Thu Nov 12 13:52:32 CET 2009
Hi,
>
> I'm having a similar problem with CSS files atm. I include three CSS
> files with TS:
>
> page.includeCSS.file1-n ...
>
> and then in my extension one with pagerenderer->addCssFile. the
> pagerenderer file gets rendered first, before the others, but I'd like
> to have css from extensions loaded last, as the general css files are
> f.e. a reset.css or a commonlayout.css and ext-css is more specialized.
>
> (same for JS, I load stuff like jquery etc. via TS, special things via
> extension)
>
> Is there a way to achieve this?
>
>
use same syntax in TS as in your extension. Which is taken first depends
on your setup, i think TS is done first mostly.
At the end all are in same array(s). CSS also have 'forceOnTop' you
should use for the common stuff.
If you can't achieve it that way you could use the concatenateHandler to
sort the array for your need. Maybe we need a renderHook as well.
vg Steffen
More information about the TYPO3-project-4-3
mailing list