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

Creating new content types with custom fields


Drupal 6 provided the ability to add new content types, which represented different types of content on your site. Visitors could then search the different types of content and you could change how they were displayed. However, Drupal 6 by itself was pretty limited as to the types of information you could attach to new content types. To get around these limitations, a majority of sites installed the contributed CCK module (short for Content Construction Kit). This module allowed administrators to add fields to a content type. Each field could be configured with the type of information it could contain, how it was validated, and what type of input control was used in edit forms. Because creating new content types was done so often and because a majority of sites used CCK, the Drupal core team decided to add much of the functionality from CCK into Drupal core.

Creating a custom content type

Content types are created within the Structure portion of...