Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » require themedCSS() outputs all files double

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

Page: 1
Go to End
Author Topic: 674 Views
  • suntrop
    Avatar
    Community Member
    131 Posts

    require themedCSS() outputs all files double Link to this post

    I have a strange problem and don't know how to fix it. When I put in my page.php or page.ss

    Requirements::themedCSS('master');


    <% require themedCSS(master) %>


    I see all CSS files twice in my source code.

    <link rel="stylesheet" type="text/css" href="/themes/max-rill-schule/css/master.css?m=1346850103" />
    <link rel="stylesheet" type="text/css" href="/themes/mrs/css/popups.css?m=1346230048" />
    <link rel="stylesheet" type="text/css" href="/themes/mrs/css/ie_fixes.css?m=1346230054" />
    <link rel="stylesheet" type="text/css" href="/themes/mrs/css/master.css?m=1346850103" />
    <link rel="stylesheet" type="text/css" href="/themes/mrs/css/popups.css?m=1346230048" />
    <link rel="stylesheet" type="text/css" href="/themes/mrs/css/ie_fixes.css?m=1346230054" />


    When I remove the required function nothing is set. Why do I get all files double?
    (To clarify: I only have it in my php or template file, not in both files at the same time)

    Is this a known bug in SS 3.01?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts
  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: require themedCSS() outputs all files double Link to this post

    Thanks. I didn't have found the other post.

    674 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.