Skip to Content
Planning and Managing Drupal Projects
book

Planning and Managing Drupal Projects

by Dani Nordin
September 2011
Beginner
100 pages
2h 54m
English
O'Reilly Media, Inc.
Content preview from Planning and Managing Drupal Projects

Organizing Your Files

As noted above, any customizations to your site (modules, themes, etc.) should reside in your sites/all or sites/default folder. There are many reasons for this, but the most important one is for ease of upgrading your site. When upgrading Drupal core, you’re essentially replacing all of the files in your Drupal installation with the newest version of the files, and updating the database to reflect the new configuration. By keeping all of your customizations in the sites folder, you lessen the risk that all of your files will be replaced once you update. Another handy facet of using the sites folder to hold all your customizations is ease of editing; by keeping everything in one place, there’s less to hunt through when you’re looking to change a file.

By default, you should keep all your customizations in sites/all. If you’re dealing with a single site, it’s just as easy to keep things in sites/default, but if you ever get into creating multi-site installations (which is way beyond the scope of this book), being in the habit of keeping everything in sites/all will save your bacon. You also need to organize your code according to what it does; for example, themes should go into sites/all/themes, modules in sites/all/modules, etc. This is because Drupal actually looks for themes in a folder called themes, modules in a folder called modules, etc. If you don’t have things stored in the appropriate folder, everything goes to heck.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Enterprise Drupal 8 Development: For Advanced Projects and Large Development Teams

Enterprise Drupal 8 Development: For Advanced Projects and Large Development Teams

Todd Tomlinson
Using Drupal, 2nd Edition

Using Drupal, 2nd Edition

Angela Byron, Addison Berry, Bruno De Bondt

Publisher Resources

ISBN: 9781449309695Errata Page