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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

Conditional comments & require


Go to End


2 Posts   2225 Views

Avatar
thany

Community Member, 6 Posts

25 January 2014 at 3:06am

Edited: 25/01/2014 3:07am

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?

Avatar
creiglee

Community Member, 1 Post

16 October 2015 at 7:58pm

More about...IE Conditional Comments

http://www.corelangs.com/html/introduction/conditional.html

Lee