Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Conditional comments & require

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

Page: 1
Go to End
Author Topic: 230 Views
  • thany
    Avatar
    Community Member
    6 Posts

    Conditional comments & require Link to this post

    When I use the require tag in a template, all that is required, is inserted at the bottom, instead of at the position of the require. This is not what I want, first of all. Secondly and more importantly, this goes wrong when including css in a conditional comment, like so:

    <!--[if lt IE 9]>
    <% require themedCSS("ie8") %>
    <![endif]-->

    What should I do to get css at the position of the require, while still maintaining the version/filedate/hash (whatever it is) in the querystring for a css file?

    230 Views
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.