Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » CDN - CSS/JS Page Location

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

Page: 1
Go to End
Author Topic: 1454 Views
  • Augury
    Avatar
    Community Member
    1 Post

    CDN - CSS/JS Page Location Link to this post

    The CSS/JS pages are being included with a full url (not a relative path). The issue is that the CDN reads the content from a different url. Thus when pages are cached in the CDN the CSS location is off the cdn. How can I specify the base_url for the css documents?

    I am including css and js pages using the old method:
    Requirements::themedCSS('homepage');
    Requirements::javascript('homepage');

    A.

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