Where to keep your css and template images
Almost any (x)html website will require some images and a css file. Placing those files in the modx(evolution) directory structure is a matter of preferences.
Images(template components)
In my opinion the images you use for your templates, like arrows, shadows, rounded corners, should be placed outside the assets/images folder. You don't want other users messing with those files. Because I consider those images components of the template I like to create a comp folder in the assets folder.

The main reason I do this is because I can access those files pretty easy via FTP. Imagine putting these files 2 levels down into the folder structure. Eg: assets/templates/mytemplate/images. You would have to click a few more times to get to the files.
CSS file
I like placing the site's css file directly in the assets folder. The reason I do this is because it saves time when typing paths for the above images(template components).
My css paths look like:
background:#D9E5CD url(comp/bg-top-1.png) repeat-x scroll 0 0;
I only need to type comp in front of the image and I'm done.
I would love to here other opinions. Please leave a message if you have one.
Write a comment
Posts: 4
Reply #6 on : Wed February 17, 2010, 02:24:37
Posts: 2
Reply #5 on : Wed February 17, 2010, 06:46:56
Posts: 4
Reply #4 on : Tue March 30, 2010, 22:32:39
Posts: 4
Reply #3 on : Tue June 15, 2010, 15:51:51
Posts: 2
Reply #2 on : Tue June 15, 2010, 15:57:14
Posts: 4
Reply #1 on : Thu August 26, 2010, 05:06:57