Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Conditional Statements and IE9.

Go to End

2 Posts   2077 Views


Community Member, 5 Posts

5 May 2011 at 10:00am

I've been developing a theme with a client for the past month or so, and of course IE was just released along with it. Anyway, the theme has a flash intro which of course now of course doesn't work in IE9. Through a little bit of my research I found that Adobe is working on a fix, so in the interim I just wanted to swap out the Flash with an image. But I have not been able to get the conditional statements to work. They work fine in just plain HTML sites but when I add them to the SilverStripe theme it's as though they aren't even there.

Here is what I am using:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en" >
<% base_tag %>
<title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; $SiteConfig.Title</title>
<link rel="stylesheet" type="text/css" href="/themes/loris/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/themes/loris/css/typography.css" />
<link rel="stylesheet" type="text/css" href="/themes/loris/css/form.css" />
<!--[if IE 9]>
<style ="text/css">
@import url(themes/loris/css/ie9.css);

has anyone else had any issues?

BLU42 Media

Community Member, 71 Posts

1 June 2011 at 7:02am

Not sure if you are still needing help on this... have you tried using a <link/> tag instead of the @import?