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.

Customising the CMS /

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

CDN - CSS/JS Page Location


Go to End


2113 Views

Avatar
Augury

Community Member, 1 Post

29 September 2009 at 6:04am

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.