Jump to:

3447 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: 1687 Views
  • George
    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
    Forum Moderator
    5511 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');

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.