Sorry to resurrect this thread, but I am having exactly the same issue.
If I make a stylesheet just for IE6 in Layout>Stylesheets, and then attach it to the template, that stylesheet will always try to load.
Yes, I can in the html template use the:
{stylesheet name="ie6"}
However, if before or after that there is just the {stylesheet} tag then regardless of the IF statement, CMSMS will try to load all the stylesheets and then process the IF statement.
I suppose as a workaround you could call just the stylesheets you want with the following:
{stylesheet name="xxx"}
{stylesheet name="yyy"}
{stylesheet name="zzz"}
and then have:
{stylesheet name="ie6"}
Is there some other alternative? Personally I was happy with just using {stylesheet}, and was then going to call the two browser specific stylesheets directly without ever importing them into CMSMS.....only as the previous poster found out, this does not work
Head of my document is as follows:
{sitename} - {title}
{metadata}
{stylesheet}
EDIT: I should add that under these circumstances the contents of style.ie6.css and 7 are not within CMSMS database, they are just sitting in the root next to my favicon.ico and should load just based on a call to their filename, only they don't. I've also tried the literal tags above and below the if statements, no effect.
This does not work. I have copied the style.ie6.css and style.ie7.css into the default path, I have also tried moving them to other places and calling them.
The only way I can get my ie7 and ie6 stylesheets to load is to attach them to the template, in which case they are always selected. This causes some issues, most notably regarding some object that was expected by not run (in IE8). If these stylesheets are run outside CMSMS then there are no errors
