Now you are ready to add the custom and D6 third-party modules you need. Coming from the world of D4.x, you need to be aware of something. The location for files and modules has changed.
Module Upload Location
Unlike D4, the D6 practice is to create a module directory either within your /sites/sitename directory or your /sites/all directory. Modules that will be shared across multiple sites can go in /sites/all directory. Modules that customize that specific site typically go in the /sites/sitename directory.
NOTE: If you are going to run multiple sites from your Drupal installation and you share the third-party modules across all the sites, then understand that upgrading the module will affect all sites using the module. In most cases, this will be okay. Just remember to check all your sites after the upgrade.
Files Location
Just like with modules, you want to create a files folder to hold your documents and images. If you choose to store docs and images in the /sites/all/files location, you will probably want to use a sub-directory or file naming process that helps you distinguish between the docs and images associated with specific sites. The path you use when calling the docs and images would be /sites/all/files/documents (assuming you call your doc directory documents). Or you would use /sites/sitename/files/documents for docs stored in the site specific directory.
NOTE: If you choose the /sites/sitename directory to store your files and images, please know that if you ever change the name of the directory (e.g., from default to examplesite.com), you will break all your links. Because, instead of looking for /sites/default/files/documents, the html needs to look for /sites/example.com/files/documents. Using the /sites/all approach is more efficient in the long run.
Post new comment