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

Book Description

Create complex websites quickly and easily using the building blocks of Drupal 8, the most powerful version of Drupal yet

About This Book

  • Build complete, complex websites with no prior knowledge of web development entirely using the intuitive Drupal user interface

  • Follow a practical case study chapter-by-chapter to construct a complete website as you progress

  • Ensure your sites are modern, responsive and mobile-friendly through utilizing the full features available in Drupal 8

  • Who This Book Is For

    If you want to learn to use Drupal 8 for the first time, or you are transitioning over from a previous version of Drupal, this is the book for you. No knowledge of PHP, MySQL, or HTML is assumed or required

    What You Will Learn

  • Set up a local “stack” development environment and install your first Drupal 8 site

  • Find out what is available in Drupal 8 core

  • Define content types and taxonomies—and find out when you should do so

  • Use the powerful Views module

  • Get hands-on with image and media handling

  • Extend Drupal using custom community modules

  • Develop the look and feel of your website using Drupal themes

  • Manage site users and permissions

  • In Detail

    Drupal 8 sets a new standard for ease of use, while offering countless new ways to tailor and deploy your content to the Web. Drupal 8 allows user to easily customize data structures, listings, and pages, and take advantage of new capabilities for displaying data on mobile devices, building APIs, and adapting to multilingual needs.

    The book takes you step by step through building a Drupal 8 website. Start with the basics, such as setting up a local “stack” development environment and installing your first Drupal 8 site, then move on to image and media handling, and extending Drupal modules. Push your knowledge by getting to grips with the modular nature of Drupal, and learning to extend it by adding new functionalities to create your new modules. By the end of the book, you will be able to develop and manage a modern and responsive website using Drupal.

    Style and approach

    This is an absolute beginners’ guide, providing step-by-step instructions to help you learn Drupal 8 from scratch.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. Learning Drupal 8
      1. Table of Contents
      2. Learning Drupal 8
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the color images of this book
          2. Errata
          3. Piracy
          4. eBooks, discount offers, and more
          5. Questions
      8. 1. Introduction
        1. What is Drupal?
          1. Dynamic web pages – a brief history
            1. Enter the database
          2. A worldwide community
          3. The success of Drupal
            1. Multiple systems integration
            2. Technical debt
            3. Developer knowledge
          4. Modularity
            1. There's a module for that
        2. Some Drupal history
          1. Language choice
          2. Is Drupal a framework or platform?
            1. Embracing other communities' frameworks
          3. How an open source community works
        3. Summary
      9. 2. Installation
        1. System requirements
          1. PHP
          2. Web server options
          3. Database options
          4. Browser options
        2. Setting up a development environment
        3. Free cloud hosting
          1. Acquia Dev Desktop
        4. Installing Drupal 8
          1. Configuring your Drupal 8 site
        5. Troubleshooting your installation
          1. Memory settings
          2. PHP timeouts
        6. Trusted host patterns
        7. Summary
      10. 3. Basic Concepts
        1. Modules
          1. Core and contrib modules
          2. Where the core modules live
          3. Where your extension modules should live
          4. An example community module
          5. Evaluating new modules
          6. Documentation
          7. Module versions
        2. Entities, nodes, and fields
          1. Entities
          2. Nodes
            1. Node types
          3. Fields
            1. Adding new fields
            2. Field types
              1. General
              2. Number
              3. Reference
              4. Text
            3. Field settings
            4. Field widgets
          4. Form display
            1. Managing the form display
            2. Managing field display
          5. Drupal 8 core entity types
        3. Taxonomy
          1. Fixed terms versus or tags
        4. Blocks
        5. Views
        6. Users, roles, and permissions
        7. Themes
          1. Administration themes
          2. Base themes and subthemes
        8. Hooks
        9. Summary
      11. 4. Getting Started with the UI
        1. The Drupal 8 user interface
          1. Logging out
          2. Logging in
          3. Front page
          4. Repositioning the tray
        2. Responsiveness
          1. Administration theme
          2. Contextual links
        3. Quick content creation
        4. Listing content
          1. Revisiting the home page
        5. Structure
          1. Block layout
          2. Comment types
          3. Contact forms
            1. Personal contact form
          4. Content types
            1. Customizing a content type
            2. Customizing fields
            3. Customizing content entry screens
            4. Customizing the display
          5. Display modes
            1. View modes
            2. Form modes
          6. Menus
          7. Taxonomy
          8. Views
        6. Configuration
        7. Appearance
        8. People
        9. Reports
        10. Extend
        11. Summary
      12. 5. Basic Content
        1. Introducing your site-building scenario
          1. Types of content
            1. Pages
            2. Articles
            3. Clients
            4. Services
            5. Testimonials
            6. FAQs
          2. Contact information
          3. SEO considerations
        2. Basic pages
          1. Creating a new page
            1. Title
            2. Body
            3. Body field summary
              1. Rich text toolbar
              2. Default HTML restrictions
              3. Full HTML
              4. Restricted HTML
            4. Adding a page to the main navigation menu
              1. Nodes and unique IDs
            5. Adding more pages
        3. Articles
          1. Creating a new article
          2. Front page promotion
          3. Adjusting the settings for a content type
          4. Disabling front page promotion
          5. Adjusting comment settings
          6. Disabling future comments
            1. No retrospective action
            2. Retrospective action
              1. Threading
              2. Show reply form on the same page as comments
              3. Preview comments before posting
            3. Removing all comments and the ability to comment
        4. Summary
      13. 6. Structure
        1. Managing menus
          1. Reorganizing menu items
          2. Editing menu items
        2. Managing taxonomy
          1. Creating a new Taxonomy vocabulary
          2. Re-ordering Taxonomy terms
          3. Apply a taxonomy vocabulary to content types
            1. Adjusting the order of fields when editing
          4. Categorizing content
          5. Viewing categorized content
            1. Segregating article types using taxonomy
          6. Creating another taxonomy vocabulary
        3. Working with the Views module
          1. Creating a Views-powered News page
            1. View wizard
              1. Creating a new view
              2. Renaming a display
              3. Live preview
              4. Content settings
              5. Page settings
            2. Filtering to News only
          2. Creating a blog page
        4. Working with Views blocks
          1. Creating blocks using Views
          2. Placing the News blocks
            1. Block position
            2. Block visibility
        5. Summary
      14. 7. Advanced Content
        1. Field types
        2. Extending content types
          1. Adjusting field settings
            1. Forcing the Article type field to be mandatory
          2. Adjusting edit form settings
            1. Placeholder text
            2. Customizing view modes
            3. Removing the labels and fields from the display
            4. Controlling image size using styles
        3. Creating new content types
          1. Creating the Client content type
            1. Inherited fields
            2. Adding a logo field
              1. Tokens
              2. Image accessibility
            3. Linking clients to their web sites
            4. Providing an e-mail address for a Client
            5. Providing a telephone number for a Client
            6. Marking a Client as high profile
            7. Attaching taxonomy
              1. Reusing fields
            8. Adjusting field display settings
          2. Adding a sorted client list to the Clients page
            1. Views sort criteria
          3. Adding a pager to your view
          4. Creating the Service content type
            1. Enabling the linking of Services to Clients
            2. Displaying services listing using Views
          5. Creating the Testimonial content type
        4. Listing testimonials with a view
          1. Creating a grouped view
          2. The FAQ content type
            1. Content type settings
            2. Field settings
            3. Display settings
          3. Creating the simple FAQ page
          4. Adding interactive querying to a view
        5. Summary
      15. 8. Configuration
        1. People – Account settings
          1. Contact settings
          2. Anonymous users
          3. Administrator role
          4. Registration and cancellation
          5. Enable password strength indicator
          6. Account cancelation behavior
          7. Notification e-mail address
          8. Emails
        2. System
          1. Site information
          2. Cron
        3. Content authoring
          1. Text formats and editors
              1. Available filters
        4. User interface
          1. Shortcuts
        5. Development
          1. Performance
            1. Caching
            2. Clear cache
            3. Bandwidth optimization
          2. Logging and errors
          3. Maintenance mode
        6. Configuration synchronization
        7. Media
            1. File system
            2. Image styles
            3. Image toolkit
        8. Search and metadata
          1. Indexing progress
          2. Indexing throttle
          3. Default indexing settings
          4. Logging
          5. Search pages
          6. URL Aliases
        9. Regional and language
          1. Regional settings
              1. Locale
              2. Time zones
            1. Date and time formats
        10. Web services
          1. RSS publishing
        11. Summary
      16. 9. Users and Access Control
        1. Users and roles
        2. Permissions
          1. Typical roles
          2. A typical scenario
          3. Creating user accounts
          4. User ID 1
          5. Editing accounts
          6. Taking control of the People page
        3. Summary
      17. 10. Optional Features
        1. Activity Tracker
        2. Aggregator
        3. Ban
        4. Book
        5. Forum
          1. Containers
          2. Forum settings
            1. Hot topics
            2. Topics per page
            3. Default order
          3. Forum permissions
          4. Contributing Forum topics
        6. Responsive image
        7. Statistics
        8. Syslog
        9. Core (experimental), Multilingual, and Web services
        10. Summary
      18. 11. Reports
        1. Accessing reports
        2. Available updates
        3. Recent log messages
          1. Log details
          2. Filtering log messages
          3. Clearing logs
          4. Log messages and performance
        4. Field list
        5. Status report
        6. Top 'access denied' errors
        7. Top 'page not found' errors
        8. Top search phrases
        9. Views plugins
        10. Summary
      19. 12. Extending Drupal
        1. Installing a module
        2. Improving FAQs
          1. Downloading the Views Accordion module
          2. Installing the module through the UI
        3. Pathauto and Token
          1. Generating paths from patterns
          2. Pathauto settings
        4. Summary
      20. 13. Theming Drupal
        1. What is a theme?
        2. Terminology
        3. Themes included in Drupal 8
          1. Accessible via the UI
            1. Bartik
            2. Seven
            3. Stark
          2. Base themes
            1. Classy
            2. Stable
        4. Setting the active theme
        5. Common settings
          1. Toggle display
        6. Theme regions
        7. Color scheme
        8. Setting the admin theme
        9. Advanced themes from the Drupal community
          1. Installing a new theme
        10. Custom themes
          1. Base themes and subthemes
        11. Summary
      21. 14. Getting Support
        1. What is open source?
        2. The Drupal community
        3. Drupal.org
        4. Issue queues
          1. Reporting a bug or requesting support
        5. The Drupal security team
        6. api.drupal.org
        7. IRC chat
        8. The Drupal Association
        9. DrupalCon
        10. DrupalCamps
        11. Specialist Drupal companies
        12. Training
        13. Certification
        14. Summary
      22. Index