Silverstripe 4.x
Question:
I have the following problem:
In the template in the area I have the following code:
<head>
<% require thmedCSS('style.css')
<% require thmedCSS('custom.css')
<!--[if lte IE 9]>
links rel="Stylesheet" type="text/css" href="ie.css">
<![endif]-->
In the supplied html document it looks like that:
<!--[if lte IE 9]>
<link rel="stylesheet" type="text/css" href="ie.css">
<![endif]-->
<link rel="stylesheet" type="text/css" href="/_resources/themes/mytheme/css/style.css?m=1484229516" />
<link rel="stylesheet" type="text/css" href="/_resources/themes/mytheme/css/custom.css?m=1573584963" />
So exactly the wrong way around. The instructions with “themedCSS” are always included last.
Additionally, a whole bunch of blank lines are substituted for the “themedCSS” statements.
Adding “themedJavascript” to the template will make it even crazier.
Is this a bug or a future?
Give it a trick to determine the order itself.
I’ve already tried to write and embed “IE9.ss” into an extra file with <% include IE9.ss>, but in this case as well, the “themedCSS” or “themedJavascript” instructions will always end at </ head> Section written.
Thanks & Greatings!
RALF