Using Drupal, 2nd Edition

Book description

Take advantage of Drupal’s vast collection of community-contributed modules and discover how they make this web framework unique and valuable. With this guide, you’ll learn how to combine modules in interesting ways (with minimal code-wrangling) to develop several community-driven websites— including a job posting board, photo gallery, online store, product review database, and event calendar.

The second edition focuses on Drupal 7, the latest version of this open source system. Each project spans an entire chapter, with step-by-step "recipes" to help you build out the precise functionality the site requires. With this book, developers new to Drupal will gain experience through a hands-on introduction, and experienced Drupal developers will learn real-world best practices.

  • Learn Drupal’s concepts and building blocks, and how everything works together
  • Hit the ground running—build your first Drupal site hands-on
  • Explore solutions that meet each project’s requirements, and discover why specific modules were selected
  • Understand the projects through case studies, including the client’s needs and desires
  • Learn how to configure modules with a bird’s-eye view of how they work
  • Discover new modules, including Drupal Commerce, Media, and Workbench

Publisher resources

View/Submit Errata

Table of contents

  1. Using Drupal
  2. Foreword
  3. Preface
    1. Audience
    2. Assumptions This Book Makes
    3. A Note About the Modules Used in This Book
    4. Contents of This Book
    5. Conventions Used in This Book
    6. Using Code Examples
    7. Downloading the Book’s Source Code
    8. Safari® Books Online
    9. How to Contact Us
    10. Acknowledgments
  4. 1. Drupal Overview
    1. What Is Drupal?
      1. Who Uses It?
      2. What Features Does Drupal Offer?
    2. A Brief History of Content Management
      1. A Historical Look at Website Creation
      2. The Age of Scripts and Databases
      3. The Content Revolution
    3. How Does Drupal Work?
      1. Modules
      2. Users
      3. Content (Nodes)
      4. Entities and Fields
      5. Ways of Organizing Content
      6. Types of Supporting Content
    4. Getting Help
    5. Conclusion
  5. 2. Drupal Jumpstart
    1. Case Study
      1. Implementation Notes
    2. Spotlight: Drupal’s Administration Interface
    3. Hands-On: Changing Administrative Settings
    4. Spotlight: Content Management
      1. Content
      2. Comments
      3. Navigation
      4. Blocks
    5. Hands-On: Content Management
      1. Creating a Basic Page
      2. Creating an Article
      3. Managing Site Navigation
      4. Configuring Blocks
    6. Spotlight: Modules
      1. Module Administration Page
      2. Finding and Installing Modules
      3. Removing Modules
    7. Hands-On: Working with Modules
    8. Spotlight: Access Control
      1. Configuring User Access
      2. User Profiles
      3. Account Settings
      4. Handling Abusive Users
    9. Hands-On: Creating Roles and Users
    10. Hands-On: Configuring Permissions
    11. Spotlight: Content Moderation Tools
      1. Automated Spam Detection
      2. Manual Spam Prevention Tools
    12. Hands-On: Contact Form
    13. Spotlight: Themes
      1. Finding a Theme
      2. Theme Installation
      3. Theme Configuration
      4. Blocks and Regions
      5. Administration Theme Setting
    14. Hands-On: Branding the Site
    15. Summary
  6. 3. Job Posting Board
    1. Case Study
      1. Implementation Notes
        1. Custom input forms
        2. File uploads
        3. Listings
    2. Spotlight: Field and Field UI
      1. Field Types
      2. Input Widgets
      3. Displays, View Modes, and Formatters
      4. Reusing Existing Fields
    3. Hands-On: Job Content Type
    4. Spotlight: References
    5. Hands-On: Adding a Reference Field
    6. Hands-On: Customizing Field Display
    7. Hands-On: Job Application Type
    8. Spotlight: Views Module
      1. Data Types
      2. Displays
      3. Pieces of a View
        1. Title
        2. Format
        3. Fields
        4. Filter criteria
        5. Sort criteria
        6. Contextual filters
        7. Relationships
        8. Header, footer, and no results behavior
    9. Hands-On: The Views Module
      1. Jobs View
      2. Applications View
        1. Create the view and default display
        2. Create the Job Tab display
        3. Create the Applications block display
    10. Taking It Further
    11. Summary
  7. 4. Media Management
    1. Case Study
      1. Implementation Notes
        1. Photo Uploads
        2. Posting Videos
        3. Thumbnail Generation
        4. WYSIWYG Editor
    2. Spotlight: Image Styles
      1. Styles and Effects
        1. Crop
        2. Desaturate
        3. Resize
        4. Rotate
        5. Scale
        6. Scale and crop
      2. Using an Image Style
        1. Field formatters
        2. Manually viewing a styled image
      3. Troubleshooting Image Styles
        1. Check Clean URLs
        2. Check GD library
    3. Hands-On: Image Styles
      1. Create Image Styles
      2. Improve Image Quality
    4. Spotlight: Media
      1. Media Files
      2. Media Browser
    5. Hands-On: Music Reviews
      1. Review Content Type
      2. Displaying Media Files
    6. Spotlight: Content Editing and Image Handling
      1. Content Editing
      2. Integrating Media in Content
    7. Spotlight: Text Formats and Filters
    8. Hands-On: Setting Up WYSIWYG
      1. Set Up and Configuration
      2. Enabling the Media Filter
    9. Spotlight: Media Internet Sources
    10. Hands-On: Posting Videos
    11. Taking It Further
    12. Summary
  8. 5. Product Reviews
    1. Case Study
      1. Implementation Notes
        1. Product information
        2. Product ratings
        3. Custom searching
    2. Hands-On: Basic Product Reviews
      1. Creating the Product Review Content Type
    3. Spotlight: Amazon Module
      1. What’s Included?
      2. Locale
      3. Referral Settings
      4. Amazon Keys
    4. Hands-On: Adding an Amazon Field
      1. Adding the Product Field
    5. Spotlight: Voting API and Fivestar
    6. Hands-On: Adding Ratings
      1. Adding the Product Rating Field
      2. Adding the Reader Rating Field
    7. Spotlight: CSS Injector
    8. Hands-On: Polishing the Presentation
      1. Setting Field Display Options
      2. Configuring CSS Injector
    9. Hands-On: Building a Product List
    10. Spotlight: The Search Module
      1. Searching with Views
    11. Hands-On: Make the Product List Searchable
    12. Rewriting Views Field Output
    13. Taking It Further
    14. Summary
  9. 6. Event Management
    1. Case Study
      1. Implementation Notes
        1. Event Management
        2. Attendance Tracking
    2. Hands-On: First Steps
      1. Creating an Event Content Type
      2. Access Control
    3. Spotlight: Date Module
      1. Date Submodules
      2. Date Field Types
      3. Date Form Elements
      4. Date Field Settings
    4. Hands-On: Adding Dates
      1. Add the Date Field
    5. Hands-On: Upcoming Events View
    6. Spotlight: Calendar Module
      1. Calendar View Type
      2. iCal Integration
    7. Hands-On: Calendar View
    8. Spotlight: Flag Module
      1. Flag Settings
      2. Flag Actions Module
    9. Hands-On: Flag Configuration
    10. Hands-On: Attendee View
    11. Taking It Further
    12. Summary
  10. 7. Managing Publishing Workflows
    1. Case Study
      1. Implementation Notes
        1. Content management tools
        2. Content access control
        3. Editorial workflow
    2. Spotlight: Taxonomy
      1. Vocabularies and Terms
      2. Taxonomy Term Links
    3. Hands-On: Categorizing Content
    4. Spotlight: Pathauto
      1. Path Aliases
      2. Pathauto Patterns
    5. Hands-On: Automating URL Aliases
    6. Spotlight: Workbench
      1. My Workbench
    7. Hands-On: Creating Editorial Work Spaces
    8. Hands-On: Generating Sample Content
    9. Spotlight: Workbench Access
      1. Using Hierarchies to Define Access Control
        1. Workbench Access sections
      2. Assigning Editorial Access to Workbench Access Sections
    10. Hands-On: Workbench Access
      1. Setting Up Access Control with Workbench Access
    11. Spotlight: Workbench Moderation
      1. Editorial Workflow Management with Workbench Moderation
    12. Hands-On: Workbench Moderation
    13. Taking It Further
    14. Summary
  11. 8. Multilingual Sites
    1. Case Study
      1. Implementation Notes
        1. Forum Discussions
        2. Knowledge Base
        3. Translating User Interface Text
        4. Translating User-Generated Content
    2. Spotlight: Interface Translation
      1. Locale
        1. Translations
        2. Interface translation
        3. Language switching
        4. Localized installer
    3. Hands-On: Installing a Translation
    4. Hands-On: Configuring Locale Features
      1. Language Detection and Selection
      2. Language Switcher
    5. Spotlight: Localization Client
    6. Hands-On: Translating the Interface
      1. Using the Locale Module
      2. Using the Localization Client
    7. Spotlight: Content Translation
    8. Hands-On: Translating Content
      1. Multilingual Content
      2. Translation
    9. Spotlight: Internationalization
      1. Multilingual Content Selection
      2. Strings
      3. Site-Wide Language-Dependent Variables
      4. Module Helpers
      5. Paths
      6. Synchronization
    10. Hands-On: Internationalization Features
      1. Content Selection
      2. Site-Wide Variables
      3. Content Types
      4. Taxonomy
        1. Forums
      5. Menu Translation
    11. Taking It Further
    12. Summary
  12. 9. Online Store
    1. Case Study
      1. Implementation Notes
    2. Spotlight: Drupal Commerce
      1. Commerce and Commerce UI
      2. Cart
      3. Checkout
      4. Customer and Customer UI
      5. Order, Order UI, Line Item, and Line Item UI
      6. Payment and Payment UI
      7. Product and Product UI
      8. Product Reference
      9. Price, Product Pricing, and Product Pricing UI
      10. Tax and Tax UI
      11. Additional Drupal Commerce Add-Ons
    3. Spotlight: Managing Products with Drupal Commerce
      1. Products and Product Types
    4. Hands-On: Products and Product Types
      1. Initial Setup Tasks
      2. Configuring Product Types
      3. Creating Sample Products
    5. Spotlight: Feeds Module
    6. Hands-On: Bulk-Importing Product Data
      1. Creating a Feed Importer for CSV Files
      2. Mapping CSV Data to Drupal Commerce Products
      3. Importing CSV Product Data
    7. Spotlight: Building the Storefront and Shopping Cart
    8. Hands-On: Product Displays
    9. Hands-On: Creating a Product Catalog
    10. Spotlight: Rules Module
    11. Hands-On: Taxes
    12. Spotlight: Accepting Credit Card Payments Online
    13. Hands-On: PayPal
    14. Hands-On: Configuring a Payment Method
    15. Hands-On: Processing Orders
      1. Shopping Cart
      2. Checkout Process
      3. Placing a Test Order
      4. Access Control
    16. Taking It Further
    17. Summary
  13. A. Installing and Upgrading Drupal
    1. Before You Begin Installation
      1. Gathering Requirements
      2. Downloading Drupal
      3. Drupal’s Files and Directories
    2. Installing Drupal
    3. Keeping Drupal Up-to-Date
      1. Version Numbers
      2. Update Status Module
      3. Site Maintenance Mode
      4. The update.php Script
    4. Updating Drupal Core
    5. Updating Contributed Modules
    6. References
  14. B. Choosing the Right Modules
    1. Finding Modules
      1. Browse Module Listings
      2. Keyword Search
      3. Local User Groups
      4. Similar Module Review Group
      5. Drupal.org Forums
      6. Case Studies
      7. Planet Drupal
      8. Third-Party Websites
    2. Assessing a Module’s Health
      1. Project Pages
      2. Issue Queues
      3. Code
    3. The People Behind the Code
      1. Maintainer Activity
      2. User Profiles
    4. Getting Involved
    5. Summary
    6. References
  15. C. Modules and Themes Used in This Book
    1. Chapter 1, Drupal Overview
    2. Chapter 2, Drupal Jumpstart
    3. Chapter 3, Job Posting Board
    4. Chapter 4, Media Management
    5. Chapter 5, Product Reviews
    6. Chapter 6, Event Management
    7. Chapter 7, Managing Publishing Workflows
    8. Chapter 8, Multilingual Sites
    9. Chapter 9, Online Store
  16. D. Major Changes Between Drupal 6 and 7
    1. New Features in Drupal 7
      1. New Themes
      2. Administration User Interface
      3. Fields
      4. Image Handling
      5. Update Manager
      6. Other Nips and Tucks
    2. Changes in Drupal 7
      1. Administration Navigation
      2. cron
      3. Input Formats
    3. Features Removed from Drupal 7
    4. Under-the-Hood Changes
    5. Resources
  17. Index
  18. About the Authors
  19. Colophon
  20. Copyright

Product information

  • Title: Using Drupal, 2nd Edition
  • Author(s): Angela Byron, Addison Berry, Bruno De Bondt
  • Release date: April 2012
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449336158