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

Image styles


Now that images have been integrated directly into Drupal core, you can configure various image styles to control the size and appearance of images that are attached to the content. Similar functionality could be achieved in Drupal 6 by installing the Image and Image Cache modules. To access the image styles, click on Configuration from the administration toolbar and then click on Image styles in the Media section. You will receive a list of the styles that are currently defined:

Drupal 7 ships with the thumbnail, medium, and large image styles by default. These set the maximum size of images as follows:

  • Thumbnail—100 x 100px

  • Medium—220 x 220px

  • Large—640 x 640px

No changes are made to the original images other than resizing them, and the aspect ratio of the original image is preserved.

To create a new image style, click on the Add style link and give the style a name. The name must be machine readable and consist of letters, numbers, and underscores. After the style has been created...