Book Image

Drupal 7 Fields/CCK Beginner's Guide

By : Dave Poon
Book Image

Drupal 7 Fields/CCK Beginner's Guide

By: Dave Poon

Overview of this book

<p>The Field module is a new core module in Drupal 7, and is the next generation of the legendary Drupal 6 CCK (Content Construction Kit) module. The CCK was a developer's best friend, used on any Drupal project of any size. Now, the Field module builds on the strength of the CCK module, bringing new features to Drupal 7.</p> <p>The Field module allows custom data fields to be attached to Drupal entities (content nodes, users, taxonomy vocabularies, and so on) and takes care of storing, loading, editing, and rendering field data.</p> <p>In Drupal 7, you can create content types and you can add fields to any content type. You can rearrange the order in which fields are displayed and you can specify the label position and format of the field. Unlike in earlier versions, you do not need to download a separate module to add fields to a content type.</p> <p>Wouldn't you like to know more about how to use this important and interesting feature?</p> <p><i>Drupal 7 Fields/CCK Beginner's Guide</i> helps you to get started quickly and to get beyond the basics to take full advantage of the fields system. It covers the key features of Drupal 7 fields that will help you get your Drupal 7 website up and running with a step-by-step approach to building a Drupal 7 website with the new fields system.</p> <p><i>Drupal 7 Fields/CCK Beginner's Guide</i> will show you how to create custom content types and fields, add fields to comments and vocabularies, reuse the existing fields, create Boolean and list fields, set default values to fields, add term references to content types, add file fields and image fields, create custom image styles, format fields' display for different view modes, use contributed modules to enhance the fields system, configure field-level permissions using the field-level permission module, and also to theme fields using the new Drupal 7 theme system. You will also learn the ins and outs of the fields system from the database perspective.</p> <p>This hands-on guide will teach you to build Drupal websites that get the most out of the Drupal 7 Field module's powerful features.</p>
Table of Contents (18 chapters)
Drupal 7 Fields/CCK
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

How Drupal renders a webpage


The following diagram is a simplified version of how Drupal renders a webpage. Each rectangle on the second level represents a point of customization available in Drupal theming.

The meaning of the picture is as follows. If you are happy with the provided default theme, theming can stop there. If you find exactly what you want in an off-the-shelf community contributed theme, theming can stop here. If none of the previous two options suffice, you can either build your own theme or create a subtheme of an existing theme to satisfy your requirements.

  • The content presented on the site usually comes from the user input on a Drupal site. If the site is getting redesigned there might be a chance of getting content source from a previous version.

  • Drupal core will process the data and add a theme implementation layer. HTML and CSS will not be rendered in this layer, it will pass the data including markup to the next layer. The theme implementation is to control the presentation...