basic question about directory usage

Events happening in the community are now at Drupal community events on www.drupal.org.
jmcquaid's picture

I'm at the beginning of a long learning curve on Drupal, with this question today.

My site will use a variety of photos and graphics. Is there any standard practice for where to locate these items? I'm assuming that creating a directory or two under /sites/all would be logical. That would give me

/sites/all

       /modules
       /themes
       /photos
       /graphics
       /videos         ....etc.

Please tell me if there is: a) a standard practice that generally makes sense other than this and b) if there are technical reasons I haven't run into yet that dictate a different structure.

Thanks! Jim McQuaid

Comments

standard answer "it depends"

chrisfromredfin's picture

If the files are relevant to your site CONTENT, then they should be attached to your content with the upload module, or dropped in a repository with a file handling WYSIWYG like IMCE (in my opinion, anyway). Both of these options will put the files in sites/default/files, which is where files related to content are. You can further subdivide them like sites/default/files/photos or whatever.

If it's related to your theme, generally it's accepted to put it in YOURTHEME/images (i.e. sites/all/themes/yourcustomtheme/images).

Lastly, I sometimes put stuff that's not exactly content, but not exactly themes in just a new /images folder that I create. In general, though, that would probably be considered a "content" image (like if it were attached to a block). Just my $0.02 so anyone else can feel free to chime in.

North Carolina

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: