Hi,
Is there a standard directory I should use to store static site images like logo, background images, sprites etc? Basically anything that is referenced from a style sheet or part of the overall site design.
thanks,
Cathal.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 25, 2011 2:18pm
Subscribe [4]#1 / Nov 25, 2011 2:18pm
Hi,
Is there a standard directory I should use to store static site images like logo, background images, sprites etc? Basically anything that is referenced from a style sheet or part of the overall site design.
thanks,
Cathal.
#2 / Nov 25, 2011 2:21pm
Anywhere you want!
You could put them inside a general /images folder, or sub folder /images/stuff, or one often used method is to create a folder called /assets, and inside there have sub folders for different groups of files, eg /assets/images, /assets/js, /assets/css
#3 / Nov 25, 2011 6:17pm
I keep my core site assets in a location separate from where user generated content is located (uploaded images, etc.) This makes things like maintenance, redesigns, repo management and deployment strategies easier to deal with. A /assets folder is a good way to go. Otherwise, you could look at the showcase sites on the front page of the EE site and view the source to see what those guys do. 😉
#4 / Nov 26, 2011 7:47pm
I take an approach like John speaks of myself as well. I like to separate core design elements from anything the client uploads and/or even has access to. Naming conventions are up to you ultimately. I tend to use multiple subfolders inside images/interface for the core design elements and I create multiple folders inside of images/uploads for all client-controlled assets.
#5 / Nov 28, 2011 4:29am
@bluedreamer, @John Fuller, @John St-Amand
Thanks for all the suggestions guys.
regards,
Cathal.