Book Image

Drupal 7 First Look

Book Image

Drupal 7 First Look

Overview of this book

Drupal 7 contains features for which site administrators have been clamoring for years, including support for fields, an improved administration interface, better database support, improved theming, and more. You could of course make a laborious search on sites, blogs, and many online tutorials that would promise to update you about every new feature, but there's an even better way to know all about Drupal 7's new features: Drupal 7 First Look is the first and only book that covers all of the fantastic new features in Drupal 7 in depth and covers the process of upgrading your Drupal 6 site to Drupal 7. If you've used Drupal 6 and want to use Drupal 7, you need this book.Drupal 7 First Look takes an in-depth look into all of the major new features in Drupal 7 so you can quickly take full advantage of Drupal 7. It also assists you in upgrading your site to Drupal 7. Some of the new features in Drupal 7 include: Fields API, based on Drupal 6 CCK, which allows you to easily build your own content types Improved user interface for administering your website Built-in support for working with images and files Improved security for the site and users of the site Completely rewritten database layer DBTNG to make working with the database easier and more secure. Improved API for custom module development and user interface theming
Table of Contents (13 chapters)
Drupal 7 First Look
Credits
About the Author
About the Reviewer
Preface
Index

Preface

Welcome to Drupal 7, the next generation of the popular Open Source content management system.

If you are new to Drupal, you will find Drupal 7 to be easy to use, yet extremely powerful. Over the course of this book we will work our way through the most important features of Drupal 7, so you can begin to gain familiarity with Drupal.

For those of you who used Drupal 6 or an earlier version of Drupal, you will find many new enhancements that are designed to make your day-to-day administration tasks easier as well as giving you additional power to extend Drupal to meet the needs of even the most advanced sites. We will spend much of the book discussing the new features of Drupal 7 as well as how Drupal 7 differs from Drupal 6, so you can upgrade your existing sites to the new platform and take advantage of all that Drupal 7 has to offer.

What this book covers

Chapter 1, What's New In Drupal 7?, introduces the reader to the important changes and new features of Drupal 7. It also gives a brief account of the functionality that has been removed entirely, moved into a contributed module, or removed in favor of existing contributed functionality.

Chapter 2, Installation and Upgrades, deals with installing Drupal 7 and upgrading your Drupal 6 site to Drupal 7. It also covers setting up custom installation profiles, so you can install multiple sites using the same basic configuration.

Chapter 3, Site Building with Drupal 7, shows you how to create custom content types with custom fields, add content to your site, translate your content, and leverage all of the new Drupal 7 functionality. It also looks at changes to the Drupal 7 content management system.

Chapter 4, Drupal 7 Administration, looks into changes that have been made to the Administration interface in Drupal 7. It covers information about the new functionality that has been added to Drupal 7 and areas where configuration options have been moved or renamed from Drupal 6 to Drupal 7.

Chapter 5, Drupal 7 for Themers, walks through all of the major changes to the Drupal theme system that were introduced in Drupal 7. It looks at changes to the template files, JavaScript, CSS, and API. It also shows how to upgrade an existing Drupal 6 theme to Drupal 7.

Chapter 6, Drupal 7 Database Changes, deals with the changes to the database abstraction layer of the Drupal API. It introduces the reader to the DBTNG layer.

Chapter 7, Drupal 7 for Developers, looks at the API in terms of upgrading your existing modules and site code to Drupal 7. It also discusses changes related to the Drupal API including changes to the core system, menu system, Form API, and file uploads.

Appendix, Post Publication Changes, because this book was written before the final release of Drupal 7 (much of it was initially written based on early Alpha and Beta versions of the software) some screenshots and descriptions have evolved as Drupal has progressed to its final release. This Appendix will describe any areas that changed after publication. The Appendix is not part of this book but available online at www.packtpub.com for free download.

What you need for this book

Drupal 7 requires PHP 5.2.0 or later to run the Drupal code. You will also need one of the following databases to run Drupal 7:

  • MySQL version 5.0 or later

  • PostgreSQL 8.3 or later

  • SQLite 3.4.2 or later

As always, you can use either Apache HTTP or Microsoft IIS for a web server, but Apache is recommended for best performance and community support.

Who this book is for

Drupal 7 First Look is written for site administrators, themers, and developers who have some experience with Drupal 6 (or even Drupal 5) and want to upgrade their sites, themes, or modules to Drupal 7 or just learn more about Drupal 7. No programming experience is required, but several code examples are covered for readers that want more in-depth information about building themes and modules.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "You can increase the available memory and execution time in your php.ini file".

A block of code is set as follows:

dependencies[] = block
dependencies[] = color
dependencies[] = comment
dependencies[] = dashboard
...

Any command-line input or output is written as follows:

php install.site.php

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Find the latest official release of Drupal 7 and click on the Download link".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Tip

Downloading the example code for this book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.