Page 1 of 1

conditional statements with cms_stylesheet

Posted: Wed Mar 13, 2013 7:54 pm
by echobrin
I'm running version 1.11.4 and using the Tabbed2 template. Since the change from {stylesheet} to {cms_stylesheet} I can't get my conditional statement for older versions of IE to work.

Here's what I put in the head section of the template:

Code: Select all

<!--[if lte IE 7]>
{cms_stylesheet name='tabbed2_layout_ie6-7'}
<![endif]-->
<!--[if lte IE 6]>
{cms_stylesheet name='tabbed2_layout_ie6'}
<![endif]-->
When I view the site in IE7, it isn't grabbing the correct stylesheet. I don't think it's a problem with the stylesheet itself because it used to work. I think it stopped working when I upgraded to whichever version of CMSMS required the change to cms_stylesheet. I think before that I had the above code but with stylesheet instead of cms_stylesheet, and I think it was working like that. (Sorry, I've tried a couple things and have lost track!)

And yes, I know IE7 is old, but the person I'm helping with this site is using it and the layout is off. :(

Re: conditional statements with cms_stylesheet

Posted: Wed Mar 13, 2013 8:04 pm
by Jo Morg
Try swapping the conditionals order... :)
I believe these should be in crescent order by version.

Code: Select all

lte: less than or equal to