Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

This chapter addressed ways to modify the preprocess function so that you can prepare and alter page template variables, and alert Drupal of new page templates. More specifically, you learned how to perform the follow tasks:

  • Dissect a theme into its component template files

  • Use sitewide variables in page templates

  • Create new sitewide variables with preprocess functions

  • Establish a grid for a page template through custom regions

  • Configure a sitewide search block

  • Change page templates based on taxonomy, page alias, and content type

  • Create and implement print-friendly pages using CSS and the Print module

  • Create a low-bandwidth site for mobile devices

In the next chapter you will learn how to fill up the “content” region of your page with nodes that are themed exactly as you want them to be.

  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint