Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » changing link rel=stylesheet

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

Page: 1
Go to End
Author Topic: 1684 Views
  • George
    Avatar
    Community Member
    41 Posts

    changing link rel=stylesheet Link to this post

    With "Requirements::themedCSS('<cssfile>')" you get "<link rel="stylesheet" type="text/css" href="<cssfile>".
    Do any parameters exist for themedCSS?
    For example to get <link rel="stylesheet" type="text/css" media="screen" href="<cssfile>" or <link rel="stylesheet" type="text/css" media="print" .href="<cssfile>".

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: changing link rel=stylesheet Link to this post

    The second parameter of Requirements::themedCSS() is the media type. Eg

    Requirements::themedCSS('mycssprintfile', 'print');

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