Welcome Guest, Not a member yet? Register   Sign In
Where to place jquery or any other globally used JS/CSS in a multi site scenario?
#1

[eluser]Devon Lambert[/eluser]
Just when I think I'm getting ahead of this project it finds some new way to kick me in the ass! :-(

I am building out a multiple site, and what I hope to be, robust CMS for my use. I have managed to nail down the general layout, but I am hitting a wall on how I can make use of some general location so that I can re-purpose my globally used assets, i.e. jquery is the first that comes to mind as it will most definitely be used on every site I intend to develop. I am making use of Carabiner for the asset management, which actually makes this a little bit more tricky as I need to provide it with a either a unaminous relative path OR a url. The URL option will work as a final option (linking to Google's Jquery code) but I don't like it for testing on my local server as there are times when I do not have access to the internet and would still like to program uninhibited by the connection. Also, that only fixes the issue for Jquery.

The general layout right now looks like this:

Public_HTML/
./CODEIGNITER System Folder
./CMS_APP folder/

./Site1/
../index.php
../.htaccess
../assets/
../cache/
.../assets/
.../other cache folders/

./Site2/
../index.php
../.htaccess
../assets/
../cache/
.../assets/
.../other cache folders/

I thought about creating another "Global_Assets" folder that sits at the same level as the CI System folder but I can't figure out how to get Carabiner to make use of this global folder.

Any ideas?


Messages In This Thread
Where to place jquery or any other globally used JS/CSS in a multi site scenario? - by El Forum - 02-06-2010, 11:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB