Jump to:

1379 Posts in 490 Topics by 520 members


SilverStripe Forums » Themes » Conditional Statements and IE9.

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1519 Views
  • thenergle
    Community Member
    5 Posts

    Conditional Statements and IE9. Link to this post

    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" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" 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

    Re: Conditional Statements and IE9. Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.