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

Chapter 8. Field Level Permissions

Within a website or a content management system, we usually need to limit access to specific pages or resources to specific people, or vice versa. We configure specific users or roles to access certain content or resources on the website. If you have managed users, roles, and permissions for a Drupal website, you will understand that Drupal provides facilities for site administrators to manage permissions easily through the Drupal administrative user interface. Site administrators can create an editor role, and assign certain permissions to this role such as creating any article content, and assign this role to certain people.

Drupal provides us with APIs to plug into the content access system in Drupal core, so there are many add-on modules that provide such functionality. But what if we would like to manage permission on a field by field basis such as hiding or showing specific fields to certain people or roles. By default, Drupal 7 does not come with...