Drupal 7 Fields/CCK Beginner's Guide


Drupal 7 Fields/CCK Beginner's Guide
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Step-by-step guide to building your own Drupal 7 website using the Drupal 7 fields system
  • Specifically written for Drupal 7 development and site building
  • In-depth coverage of theming fields in Drupal 7
  • Discover the new fields system from the database perspective
  • Packed with hands-on-examples, quizzes, and clear explanations along with plenty of screenshots for better understanding

Book Details

Language : English
Paperback : 288 pages [ 235mm x 191mm ]
Release Date : July 2011
ISBN : 184951478X
ISBN 13 : 9781849514781
Author(s) : Dave Poon
Topics and Technologies : All Books, CMS and eCommerce, Beginner's Guides, Content Management (CMS), Drupal, Open Source, PHP

Table of Contents

Preface
Chapter 1: Nodes and Content types in Drupal 7
Chapter 2: Fields
Chapter 3: Multiple Value Fields
Chapter 4: Taxonomy
Chapter 5: File and Image Fields
Chapter 6: Managing Field Display
Chapter 7: Contributed Field Modules
Chapter 8: Field Level Permissions
Chapter 9: Theming Fields
Chapter 10: A Database Perspective of Fields
Pop Quiz Answers
Index
  • Chapter 1: Nodes and Content types in Drupal 7
    • The book example project
    • A preview of the final project
    • What is a content type?
    • Default content types in Drupal 7 core
      • The Basic page content type
      • The Article content type
    • Time for action – creating contents using the article content type
    • Creating custom content types
      • Creating the Cooking Tip content type
    • Time for action – creating the Cooking Tip content types
      • Creating the Recipe content type
    • Time for action – creating the Recipe content type
    • Adding content using custom content types
      • Adding content using the Cooking Tip content type
    • Time for action – adding content using the Cooking Tip content type
      • Adding content using the Recipe content type
    • Time for action – adding contents using the Recipe content type
    • Summary
    • Chapter 2: Fields
      • What is CCK?
      • Fields in Drupal 7
        • Enabling the Field module
      • Time for action – enabling the Field module
        • Field, Field UI, and Field SQL storage modules
      • Time for action – finding the Field UI
        • Field types and input widgets
      • Time for action – finding the field types and input widgets in Field UI
      • Drupal 7 core default fields
        • Drupal 7 core field related modules
          • Number modules
          • Text modules
          • List modules
          • Taxonomy modules
          • Image modules
          • File modules
      • Adding fields to content types
        • Adding text fields using the text module
      • Time for action – adding Long text fields using the text module
        • Text fields
      • Time for action – adding text fields using the text module
      • Rearranging the order of fields
        • Rearranging the order of the Notes field
      • Time for action – rearranging the order of the Notes field
      • Adding fields to comments
        • Adding text fields to comments
      • Time for action – adding a text field to comments
      • Time for action – rearranging the order of the Email field
      • Reusing existing fields
      • Time for action – reusing the Notes field for the Recipe content type
      • Time for action – reusing the Source field for the Recipe content type
      • Time for action – rearranging the order of the Notes field
      • Time for action – reusing the Email text field in the Recipe content type
      • Time for action – rearranging the order of the Email field
      • Summary
      • Chapter 3: Multiple Value Fields
        • Enabling multiple values
        • Time for action – enabling multiple values
        • Adding Boolean fields
        • Time for action – adding a Boolean field
        • Setting default values
        • Time for action – setting default values
        • Adding list fields
        • Time for action – adding list fields
        • Multiple value widgets
        • Time for action – changing the number of the values
        • Time for action – checkboxes/radio buttons widget with multiple values
        • Summary
        • Chapter 4: Taxonomy
          • What is taxonomy?
          • Creating vocabularies
          • Time for action – creating the Cooking Tip Category vocabulary
          • Time for action – creating the Recipe Category vocabulary
          • Adding terms to vocabularies
          • Time for action – adding terms to Cooking Tip Category
          • Adding term references to content types
          • Time for action – adding a term reference field to the Cooking Tip content type
          • Categorizing content using taxonomy
          • Time for action – categorizing Cooking Tip Content using taxonomy
          • Adding fields to vocabularies
          • Time for action – adding a field to the Cooking Tip Category vocabulary
          • Summary
          • Chapter 5: File and Image Fields
            • Adding and configuring file fields to content types
            • Time for action – adding and configuring a file field to the Recipe content type
            • Using file fields
            • Time for action – using the file field
            • Adding image fields to content types
            • Time for action – adding an image field to the Recipe content type
            • Configuring image field settings
            • Time for action – configuring an image field for the Recipe content type
            • Creating custom image styles
            • Time for action – creating a custom image style
            • Summary
            • Chapter 6: Managing Field Display
              • Field display
              • Time for action – a first look at the field display settings
              • Formatting field display in the Teaser view
              • Time for action – formatting the Body field display in teaser view
              • Custom display settings
              • Time for action – enabling the Full content view mode in custom display settings
              • Formatting the image field display on Full content
              • Time for action – formatting the image field display on Full content
              • Formatting the comment field display
              • Time for action – formatting the comment field display
              • Formatting the vocabulary field display
              • Time for action – formatting the vocabulary field display
              • Summary
              • Chapter 7: Contributed Field Modules
                • Drupal modules
                • Contributed modules
                • Finding modules
                • Time for action – finding contributed field modules through the Drupal website
                • Time for action – finding contributed field modules through the drupalmodules.com website
                • Installing and enabling contributed modules
                • Time for action – installing a module
                • Time for action – installing a module using Update manager
                • Contributed field modules
                  • Email field module
                  • Link module
                  • Table field module
                  • Computed field module
                  • Content Templates (Contemplate) module
                • Summary
                • Chapter 8: Field Level Permissions
                  • Downloading the Field Permission module
                  • Time for action – downloading the Field Permission module
                  • Installing and enabling the Field Permission module
                  • Time for action – installing and enabling the Field Permission module
                  • Enabling field-level permissions
                  • Time for action – enabling field-level permissions
                  • Configuring field-level permissions on the PERMISSIONS administration page
                  • Time for action – configuring field-level permissions on the PERMISSIONS administration page
                  • Field-level permission reports
                  • Time for action – the Field permissions report page
                  • Summary
                  • Chapter 9: Theming Fields
                    • What is a theme?
                    • What is theming?
                    • How Drupal renders a webpage
                    • How to get started on theming
                    • Creating a Drupal theme
                    • Time for action – creating a Drupal theme by cloning the existing theme
                    • Overriding template files
                    • Time for action – creating a template file for the Recipe content type
                    • Editing template files
                    • Time for action – editing a template file
                    • Styling the page using CSS
                    • Time for action – styling the page using CSS
                    • Summary
                    • Chapter 10: A Database Perspective of Fields
                      • Key elements in Fields
                        • Entities
                        • Bundles
                        • Field storages
                        • Field types
                        • Fields
                        • Field instances
                        • Field widgets
                        • Field formatters
                        • Fieldable entities
                        • Taxonomy
                      • New concepts in Drupal 7
                        • Understanding nodes in Drupal
                        • Turning everything into a node
                        • Is everything an entity?
                        • Entities are the new nodes?
                        • Are they entities or objects?
                      • A database perspective of fields
                        • Content types
                      • Time for action – creating a new content type
                        • Fields
                        • Field-related database tables
                      • Summary
                      • Pop Quiz Answers
                        • Chapter 1, Nodes and Content types in Drupal 7
                          • Pop quiz – understanding the default content types
                          • Pop quiz – creating content types
                          • Pop quiz – adding content using custom content types
                        • Chapter 2, Fields
                          • Pop quiz – enabling the Field module
                          • Pop quiz – finding the Field UI
                          • Pop quiz – finding the field types and input widgets in Field UI
                          • Pop quiz – adding text fields using the text module
                          • Pop quiz – rearranging the order of fields
                          • Pop quiz – adding text fields to comments
                          • Pop quiz – rearranging the order of fields in comments
                          • Pop quiz – reusing fields in content types
                          • Pop quiz – reusing fields in content types
                        • Chapter 3, Multiple Value Fields
                          • Pop quiz – multiple values in fields
                          • Pop quiz – understanding the Boolean field
                          • Pop quiz – setting default values
                          • Pop quiz – adding list fields
                          • Pop quiz – understanding multiple value widgets
                        • Chapter 4, Taxonomy
                          • Pop quiz – creating vocabularies
                          • Pop quiz – adding terms to vocabularies
                          • Pop quiz – adding term references to content types
                          • Pop quiz – categorizing content using taxonomy
                          • Pop quiz – adding fields to vocabularies
                        • Chapter 5, File and Image Fields
                          • Pop quiz – adding and configuring file field settings
                          • Pop quiz – using the file field
                          • Pop quiz – configuring image field settings
                          • Pop quiz – creating custom image styles
                        • Chapter 6, Managing Field Display
                          • Pop quiz – a first look at the field display settings
                          • Pop quiz – formatting field display in the teaser
                          • Pop quiz – custom display settings
                          • Pop quiz – formatting image field display on Full content
                          • Pop quiz – formatting comment field display
                          • Pop quiz – formatting vocabulary field display
                        • Chapter 7, Contributed Field Modules
                          • Pop quiz – finding a contributed field module
                          • Pop quiz – installing and enabling contributed modules
                        • Chapter 8, Field Level Permissions
                          • Pop quiz – installing and enabling the Field Permission module
                          • Pop quiz – enabling field-level permissions
                          • Pop quiz – configuring field-level permissions on the PERMISSIONS administration page
                          • Pop quiz – the Field permissions report page
                        • Chapter 9, Theming Fields
                          • Pop quiz – creating a Drupal theme by cloning the existing theme
                          • Pop quiz – creating a template file for the Recipe content type
                          • Pop quiz – editing a template file
                          • Pop quiz – styling the page using CSS
                        • Chapter 10, A Database Perspective of Fields
                          • Pop quiz – key elements in Fields
                          • Pop quiz – new concepts in Drupal 7
                          • Pop quiz – creating a new content type
                          • Pop quiz – a database perspective of fields

                        Dave Poon

                        Dave Poon is a web developer and designer based in Sydney. He started his career as a freelance graphic and web designer in 1998 and works with web development agencies and medium-size enterprises. After graduating from Central Queensland University with a degree in Multimedia Studies and a Master's degree in IT he began his love affair with Drupal, and works for a variety of companies using Drupal. Currently, he is the director of Erlango (http://erlango.com), a web product development startup, located in Sydney and Hong Kong, which is using Drupal as a framework to create web products and customized CMS. He was the technical reviewer for Drupal Intranets with Open Atrium, published by Packt Publishing.
                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                        Errata

                        - 2 submitted: last submission 31 Jan 2013

                        Errata type: Image | Page number: 144

                        The image on the given page number should be as follows:

                        Errata type: Grammar | Page number: 20

                        In the Preface in the What you need for this book section, the first sentence should be as follows:

                        To follow along with the examples in this book, you will need a computer that can run MySQL, PHP, and the Apache web server, which are all prerequisites for Drupal.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Drupal 7 Fields/CCK Beginner's Guide +    IBM InfoSphere Replication Server and Data Event Publisher =
                        50% Off
                        the second eBook
                        Price for both: $44.10

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Customize web content by creating custom content types and fields through the Field's user interface
                        • Enrich website functionality by adding fields to content types, comments, and vocabularies
                        • Explore the interaction between multiple-value fields and multiple-value widgets
                        • Create multiple value fields with Boolean and list field types
                        • Categorize web content with term-reference fields for your website
                        • Add file attachment ability to your Drupal site with file fields
                        • Adjust and configure image effects with image styles for your website
                        • Display and configure images with image fields
                        • Manage field display on teaser, full-content, and RSS views for your website
                        • Add and work with contributed modules to enhance field functionality
                        • Theme and lay out fields using CSS and the Drupal 7 theme system on your website
                        • Discover fields behind-the-scenes from the database perspective

                        In Detail

                        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.

                        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.

                        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.

                        Wouldn't you like to know more about how to use this important and interesting feature?

                        Drupal 7 Fields/CCK Beginner's Guide 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.

                        Drupal 7 Fields/CCK Beginner's Guide 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.

                        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.

                        A step-by-step comprehensive guide to learning Drupal 7 fields from scratch while building a Drupal 7 website

                        Approach

                        This book is a beginner's guide, which has a comprehensive and step-by-step approach to building Drupal websites with fields. The book has examples, quizzes, and challenges for self-assessment and plenty of screenshots for easier and quicker understanding.

                        Who this book is for

                        This book is designed primarily for people who know some basics of Drupal and want to familiarize themselves with CCK/Field. However, technical users will also find the book useful, as we will explore a wide variety of techniques that are used to build websites with fields.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software