Best Practices - sites specific files
tsekhar - August 11, 2008 - 12:36
I am new to Drupal and would like some help. We have serveral site specific files (images, jpegs, ...) that are part of the content itself, but not part of the theme. Are there any best practices surrounding where these files should reside. sites/default/files seems like a logical place. As the content changes, these files could also change. Any response will be appreciated.
Thanks,
Thankam Sekhar

If images are part of the
If images are part of the content you intend to create, then you will be attaching/inserting the image into a page or a story, for example. If you use a module to do this (image, TINYMce, etc), then the file directory either will be automatically created for you once the module is activated, or you will be asked to specify a location in the file directory for your images.
If you opt to insert images manually with html, then you can put an images folder in the /files directory.
Others may have different suggestions; this is my understanding of best practices.
----------------------------------------------------------------------
http://www.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.
Images that are part of the
Images that are part of the content could keep changing daily. Some folks here are keeping it in the sites/all/themes directory. Others are of the opinion that it should be kept separate in sites/default/files directory. These are not part of any themes but rather part of content.
Uploading these files is a whole another challenge because today drupal does not have a module to tar up all these files and do one upload.
So is the /files directory you are referring to above the sites/default/files?
Thanks,
Thankam
Yes, apologies, the /files
Yes, apologies, the /files directory I refer to above is here: sites/default/files
(In drupal 5.x, /files resides in the root directory.)
There may be ways to import many images at once. Here is one module: http://drupal.org/project/image_fupload (It has some google code dependencies)
Another is this: http://drupal.org/project/image_import_zip (but it is for drupal 5.x)
How are you adding images to your content?
----------------------------------------------------------------------
http://www.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.
Images are embedded in the
Images are embedded in the page via standard image tags. Once the developers complete the testing of their site we want to make sure they can upload images and content specific files all at once. As you suggest, we plan to use the default/files directory for both images, pdfs, and anything else that is content specific. We will keep the images specific to themes in the sites/all/themes directory.
Thanks for referring the two above modules. I will check them out.