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

Summary


In this chapter, we learned how to enable multiple values for fields, setting up the number of values for fields. We learned how to set default values for fields, such that values would be automatically set for fields when creating new content. After that, we learned how to create list fields, which gave us the ability to create selection lists easily. Following that, we learned the relationship between the number of values in a field and the widget types.

In the next chapter, we will talk about what taxonomy is in Drupal, and the changes in Drupal 7. We will learn how to create custom vocabularies, how to properly configure vocabularies, add terms to vocabularies, add fields to vocabularies, and finally how to add term references to content types. We will learn all these topics in the next chapter.