[TYPO3-core] RFC: #10997: Wrong order by CSS inclusion in template.php

Steffen Kamper info at sk-typo3.de
Tue Apr 28 13:29:53 CEST 2009


Hi,

Martin Kutschker schrieb:
> inDocStyles are the ones added by the module inline, right?
>
right

>> Solution:
>> Solution is simple: just change the inclusion order:
> 1.) styleSheetFile + styleSheetFile2
> 2.) styleSheetFile_post
> 3.) additionalStyleSheets
> 4.) inDocStyle
> 
> So why styleSheetFile_post last?
> 
> I don't know what gets broken, but this seems like a logical load order
> to me.
> 
> 1.) styleSheetFile + styleSheetFile2
> 2.) styleSheetFile_post
> 3.) additionalStyleSheets
> 4.) inDocStyle
> 
> But maybe we need to define which kind of CSS is supposed to go where.
> We have basic module CSS, general skin CSS, perhaps special skin CSS for
> the module...
> 

this was the load order before the patch:
1.) styleSheetFile + styleSheetFile2
2.) inDocStyle
3.) styleSheetFile_post
4.) additionalStyleSheets

The styleSheetFile + styleSheetFile2 + styleSheetFile_post are still 
there for compatibility, they shouldn't be used in future as we have 
additionalStyleSheets now. This associative array contains all included 
stylesheets, the inline styles should be last.

So i'm fine with your latest suggestion too.

vg Steffen



More information about the TYPO3-team-core mailing list