I am setting up multiple sites using MSM. I have a default site, and all my assets (css. js, etc) are located in this site’s directory. Typically I will add JS and CSS files to a snippet, for example
< script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">< /script >
< script src="{site_url}scripts/slideShow5.js">< /script >
< script src="{site_url}scripts/autoadvance.js">< /script >
< script src="{site_url}scripts/toggleText.js">< /script >
< script src="{site_url}scripts/bannerSlider.js">< /script >However, {site_url} becomes the current site’s URL: I need it to be the default site’s URL.
I’ve also tried using an embedded template that I created in my default site:
{embed='default_site:global_embed/.scripts'}which shows the embedded template’s contents, but also replaces site_url with the current site’s URL.
Do I have to hard-code the URL anywhere I’m using assets from the default site?