You are previewing Beginning Drupal 8.
O'Reilly logo
Beginning Drupal 8

Book Description

Beginning Drupal 8 teaches you how to build, maintain, and manage Drupal 8-based web sites. The book covers what Drupal is, using Drupal when building a new web site, installing and configuring Drupal, creating and managing content, managing users, adding functionality to your web site through Drupal modules, and advanced topics on using themes, panels, and views.

The book also builds practical examples of common Drupal sites, such as a company website, a community website, and a commerce website, that you can take and expand on to create your own Drupal 8 sites. By reading this book, you will understand the power of the Drupal platform, and why you should be using Drupal if you're not already. Through following the samples in the book, you will quickly build your confidence and your ability to use Drupal. Beginning Drupal 8 gives you the knowledge necessary to build, deploy, and manage web sites on Drupal 8.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Technical Reviewer
  9. Acknowledgments
  10. Introduction
  11. Chapter 1: Introduction to Drupal
    1. Content Management Systems
      1. Drupal
      2. Drupal Core
      3. Contributed Modules
      4. Drupal Themes
    2. Creating Content
    3. Summary
  12. Chapter 2: Creating and Managing Content
    1. Understanding the Basics
    2. Creating Content in Drupal
      1. Teasers and Full Nodes
    3. Editing Content
    4. Other Content Options
      1. Revision Information
      2. Menu Settings
      3. Comment Settings
      4. URL Path Settings
      5. Authoring Information
      6. Promotion Options
    5. Deleting Content
    6. Previewing Content
    7. Finding Content
    8. Summary
  13. Chapter 3: Creating and Managing Users
    1. Users, Roles, and Permissions
    2. User Accounts
    3. Configuring User Account Settings
    4. Creating Roles
    5. Assigning Permissions
    6. Creating User Accounts
    7. User-Generated Accounts
    8. Resetting Users’ Passwords
    9. Summary
  14. Chapter 4: Taxonomy
    1. Taxonomy Overview
    2. Creating Vocabularies
    3. Assigning a Taxonomy Vocabulary to a Content Type
    4. Selecting a Taxonomy Term when Creating Content
    5. Creating Human- and Search Engine–Friendly Lists
    6. Hierarchical Terms
    7. Assigning More Than One Vocabulary
    8. Summary
  15. Chapter 5: Content Types
    1. The Basic Page and Article Content Types
    2. Defining a Custom Content Type
    3. Creating a Custom Content Type
    4. Customizing Your Content Type
    5. Other Field Types
      1. Radio Buttons
      2. Check Boxes
      3. Select Lists
      4. File Uploads
      5. Text Area
      6. Numeric Fields and Other Field Types
    6. Formatting the Input Form for a Custom Content Type
    7. Formatting the Output of a Custom Content Type
    8. Summary
  16. Chapter 6: Using Drupal Themes
    1. How a Drupal Theme Works
    2. Finding a New Theme
    3. Installing a Theme
    4. The Administration Theme
    5. Configuration Options
    6. Summary
  17. Chapter 7: Creating Menus
    1. Ordering from the Menu
    2. Adding an Item to a Menu
      1. Adding a Content Item to a Menu
      2. Adding a Menu Item for an External Page
    3. Creating a New Menu
    4. Summary
  18. Chapter 8: Drupal Blocks
    1. Blocks, Blocks, and More Blocks
    2. Making Blocks Appear on Pages
    3. Finding the List of Available Blocks
    4. Rearranging Blocks
    5. Reassigning and Deactivating Blocks
    6. Configuring Blocks
    7. Using Blocks from Contributed Modules
    8. Creating Custom Blocks
    9. Summary
  19. Chapter 9: Views
    1. The Views Module
    2. Creating Your First View
      1. Page Display
      2. Block Display
      3. Filtering
    3. Advanced View Output
      1. Creating RSS Feeds
      2. Creating Tables
    4. Views Add-on Modules
    5. Summary
  20. Chapter 10: Creating Pages
    1. Foundation for Creating Pages
      1. Creating Landing Pages
      2. Creating Views
    2. Summary
  21. Chapter 11: Drupal Modules
    1. Finding Contributed Modules
    2. Downloading and Installing a Module
      1. Downloading Module Files to Your Server
      2. Using the Install New Module Feature
    3. Configuring Modules and Setting Permissions
    4. Enabling Other Modules
      1. Upgrading a Module
      2. Uninstalling a Module
    5. The Top Eleven Modules
      1. Views
      2. Layout
      3. Rules
      4. Display Suite
      5. Nicemenus
      6. Pathauto
      7. Webform
      8. Backup and Migrate
      9. Date
      10. Library
      11. Drupal Commerce
    6. Summary
  22. Chapter 12: Anatomy of a Module
    1. Your First Drupal 8 Module
      1. Step 1: Create the Module’s Directory
      2. Step 2: Create the Module’s info File
      3. Step 3: Create the Module File
      4. Step 4: Create the Module’s Routing File
      5. Step 5: Create the Module’s Controller
    2. Other Module Files
    3. Summary
  23. Chapter 13: Multilingual Capabilities
    1. Getting Started with Multilingual
    2. Configuring Multilingual Capabilities
      1. Specifying the Languages
      2. Configuring Language Activation
      3. Content Translation Example
    3. Configuring Entities
    4. Translating Content
    5. Summary
  24. Chapter 14: Administering Your Drupal Site
    1. Backing Up and Restoring Your Site
      1. Backing Up with the Backup and Restore Module
      2. Backing Up with Drush
      3. Restoring a Backup
    2. Backing Up the File System
      1. Restoring the File System
    3. Checking the Log Files
      1. Recent Log Messages
      2. Top ‘Page Not Found’ Errors
      3. Status Report
    4. Checking for Updates and Security Patches
    5. Approving Requests for User Accounts
    6. Summary
  25. Chapter 15: Using Drush
    1. Installing Drush
      1. Installing Drush on Unix, Linux, or OS X
      2. Installing Drush on Windows
    2. Drush Commands
    3. Summary
  26. Chapter 16: Using Git
    1. Installing Git
      1. Installing Git on Linux
      2. Installing Git on OS X
      3. Installing Git on Windows
    2. Using Git
    3. Using GitHub
    4. Using Git on Drupal.org
    5. Summary
  27. Chapter 17: Putting It All Together
    1. Now What?
      1. Look At Other Drupal-Based Sites for Ideas
      2. Keep Tabs on Drupal and Contributed Modules
      3. Get Involved in Your Local Drupal Users Group
    2. A Methodology for Building Your Site on Drupal
    3. Summary
  28. Chapter 18: Creating a Responsive Site
    1. Responsive Defined
    2. How Responsive Web Design Works
    3. Making Your Site Responsive
      1. Browser Tools to Help You Test Your Responsive Theme
      2. Common CSS Changes to Address Responsiveness
    4. Summary
  29. Chapter 19: Creating a Blog Site
    1. Identifying Requirements for a Blog Site
    2. Installing Drupal
    3. Installing and Creating a Theme
    4. Creating Taxonomy
    5. Updating the Article Content Type
    6. Creating Views
    7. Assigning Blocks
    8. Summary
  30. Chapter 20: Building a Company Site
    1. Identifying Requirements for a Company Site
    2. Installing Drupal
    3. Installing and Creating a Theme
    4. Creating Taxonomy
    5. Updating the Article Content Type
    6. Creating the Client Portfolio Content Type
    7. Expanding Drupal’s User Profile
    8. Aggregating External News Feeds
    9. Contact Form
    10. Assembling the SiteAssemble-website
      1. The About US Page
      2. The Client Portfolio Page
      3. The Service Offerings Page
      4. The Key Staff Page
      5. The News Page
      6. The Staff Blog Page
      7. Adding the Contact Form to the Main Menu
      8. Creating the Footer
      9. Creating the Homepage
    11. Summary
  31. Chapter 21: Building a Community Site
    1. Requirements for a Community Site
    2. Installing Drupal CommonsDrupal Commons installation
    3. Creating New Groups
    4. Adding Events
    5. Creating Posts
    6. Creating Wikis
    7. Managing Groups
    8. Additional Capabilities
    9. Summary
  32. Chapter 22: Building a Commerce Site
    1. Identifying Requirements for a Commerce Site
    2. Installing Drupal Commerce Kickstart
    3. Setting Up Product Categories
    4. Setting Up Products
    5. Creating a Product
    6. Displaying Products
    7. Shipping, Taxes, Payment, and Other Features
      1. Shipping
      2. Taxes
      3. Payments
    8. Summary
  33. Appendix A: Installing Drupal
    1. The Foundation Required to Install Drupal
    2. Setting Up your Platform in Preparation for Drupal
    3. Installing Drupal
      1. Downloading Drupal
      2. Decompressing the Drupal Installation Package
      3. Moving the Drupal Distribution to the Root Directory of Your Web Server
      4. Creating the settings.php File
      5. Creating the files Directory
      6. Creating the Drupal Database
      7. Creating a Database User Account
    4. Configuring Drupal
    5. Summary
  34. Appendix B: Additional Resources
    1. Drupal Modules
    2. Drupal Themes
    3. Drupal Documentation
    4. Where to Go When You Have Problems
    5. Where to Host Your Drupal Site
    6. Where to Go to Learn HTML and CSS
    7. Video Tutorials
    8. Drupal Podcasts
  35. Index