Abstract
Changing the HTML or other markup that Drupal produces requires esoteric knowledge of the layers that make up the theme system. The theme system is an elegant architecture that’ll keep you from hacking core code, but it does have a learning curve, especially when you’re trying to make your Drupal site look different from other Drupal sites. We’ll teach you how the theme system works and reveal some of the best practices hiding within the Drupal core. Here’s the first one: you don’t need to (nor should you) edit the HTML within module files to change the look and feel of your site. By doing that, you’ve just created your own proprietary content management system, and have thus lost one the biggest advantages of using a communitysupported open source software system to begin with. Override, don’t change!
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 John K. VanDyk and Matt Westgate
About this chapter
Cite this chapter
(2007). The Theme System. In: Pro Drupal Development. Apress. https://doi.org/10.1007/978-1-4302-0190-8_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0190-8_8
Publisher Name: Apress
Print ISBN: 978-1-59059-755-2
Online ISBN: 978-1-4302-0190-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books