CodeIgniter Forums
Ocular, css, js, images problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ocular, css, js, images problem (/showthread.php?tid=47014)



Ocular, css, js, images problem - El Forum - 11-23-2011

[eluser]audunfr[/eluser]
Morning all..

I have a new project going on that need some special structure.
As of now i have added Ocular so it will be easy to make other do the design.
One problem on the other hand is a little special config regarding css, img's and javascript.

Since multiple people is going to create templates for this system i need all the CSS, images and Javascript to live inside the view folder.

Application/Views/
Theme1
css
Images
Javascript
Layout.php
Index.php
Theme2
css
Images
Javascript
Layout.php
etc

The plan is that I and my team write the backend for this system and other can extend it by uploading different templates they want to use. This is not going to be a web-site but more a presentation site that is going to replace PowerPoint.

I tried to put <base href> in the layout file and the CSS is working, but inside the css file all the background images cannot show.

Absolute URLs is not a good solutions as the designers should be able to write [removed][removed] as they don't know where the View folder is.

Any idea how to solve this to make it user friendly ?
I haven't used Codeigniter that much so this development will be a learning curve for me, but I'm looking forward to it.

Thanks for any answer.