Drupal 10 Masterclass

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Get started with Drupal 10 using this comprehensive guide for beginners and learn key concepts such as building, installing, maintaining, managing content, and advanced topics through real-world examples and use cases Key Features Explore Drupal 10 concepts in depth and discover how you can engage with the Drupal open-source community Build Drupal applications with powerful features such as structured content, media, views, and displays Learn how to create modules and themes with metadata, hooks, and Drupal’s customization plugins Book Description Learning Drupal can be challenging because of its robust, extensible, and powerful capability for digital experiences, making it difficult for beginners to grasp and use it for application development. If you’re looking to break into Drupal with hands-on knowledge, this Drupal 10 Masterclass is for you. With this book, you’ll gain a thorough knowledge of Drupal by understanding its core concepts, including its technical architecture, frontend, backend, framework, and latest features. Equipped with foundational knowledge, you’ll bootstrap and install your first project with expert guidance on maintaining Drupal applications. Progressively, you’ll build applications using Drupal’s core features such as content structures, multilingual support, users, roles, Views, search, and digital assets. You’ll discover techniques for developing modules and themes and harness Drupal’s robust content management through layout builder, blocks, and content workflows. The book familiarizes you with prominent tools such as Git, Drush, and Composer for code deployments and DevOps practices for Drupal application management. You’ll also explore advanced use cases for content migration and multisite implementation, extending your application’s capabilities. By the end of this book, you’ll not only have learned how to build a successful Drupal application but may also find yourself contributing to the Drupal community. What you will learn Understand Drupal’s architecture and infrastructure dependencies Bootstrap, install, and configure your first Drupal project Maintain Drupal through updates, automation, and DevOps practices Harness Drupal features like multilingual, search, Views, and content moderation Understand content management and how to effectively put it into action Explore advanced topics such as Git, Drush, DevOps, and Composer Leverage Drupal’s framework for modules and themes Discover advanced use cases for migration and multisite management Who this book is for If you are a CMS professional new to Drupal and want to learn all aspects of building and maintaining Drupal websites, this book is for you. While hands-on experience with Drupal is not assumed, having foundational knowledge of CMS development will help you get the most out of this book.

Author(s): Adam Bergstein
Publisher: Packt Publishing Pvt Ltd
Year: 2023

Language: English
Pages: 375

Drupal 10 Masterclass
Contributors
About the author
About the reviewer
Preface
Who this book is for
What this book covers
To get the most out of this book
Conventions used
Sections
Concepts
Use cases
Community Projects
Get in touch
Share your thoughts
Download a free PDF copy of this book
Part 1:Foundational Concepts
1
What is Drupal?
What is a CMS?
Frameworks and extensibility
Basic Drupal concepts
Drupal’s administrative backend
Drupal’s frontend presentation layer
Popular Drupal case studies
Summary
2
Drupal Core, Modules, and Themes
Drupal core
What is core?
Core features
Core systems
Core development
Overview of Drupal projects
Drupal modules
What is a module?
Popular community modules
Drupal themes
What is a theme?
Core themes
Contribution
Summary
3
Infrastructure and Overview of Technical Architecture
Hosting Drupal and platform requirements
Drupal architecture
Infrastructure technical stack
Application architecture
Backend architecture
Frontend architecture
Drupal management and operations
Maintenance
Operations
Summary
4
Drupal Community
Understanding the open-source community
Drupal.org basics
Core on Drupal.org
Core contribution
Projects on Drupal.org
Contribution impact
Other community resources and tools
Summary
5
What’s New in Drupal 10
Release methodology
Platform requirements
Upgrade considerations
Major releases
New to Drupal 10
Symfony 6.2
CKEditor 5
Olivero
Claro
Starter kit themes
Built in Drupal 10
Automatic updates
Recipes
Decoupled menus
Project browser
Summary
Part 2:Setting up - Installing and Maintaining
6
Bootstrapping, Installing, and Configuring a New Drupal Project
Establishing a new codebase
What is Composer?
Composer projects
Common commands
Installing Drupal
Installation preparation
UI-based installation
Performing an installation with Drush
Post-installation
Out-of-the-box Drupal Building
Developer Classification
Site Building Concept
Requirements Gathering
Beyond core features
Basic configuration
Post-installation configuration
Common configuration changes
Help, logs, and reporting
Help
Logs and Reporting
Summary
7
Maintaining Drupal
Types of maintenance
Code-related maintenance
Infrastructure platform maintenance
Code maintenance process
Reviewing code management and deployment concepts
Typical code maintenance process
Best practices
Backups
Environment differences
Managed platforms
SaaS services
Update frequency
Product life cycles
System monitoring and tools
Edge systems
Summary
Part 3:Building - Features and Configuration
8
Content Structures and Multilingual
Importance of structured content
Relational database best practices
Structured content in Drupal
Entities, types, and bundles
Fields and field types
Base entities
Content entities
Entity example for Node
Example models
Configuration entities
Under the hood
Site building
Applying to other features
Multilingual features
Modules
Summary
9
Users, Roles, and Permissions
Users
User entity
Features
User management
Roles
Role entity
Default roles
Configuring roles
Permissions
Access control
Types of permissions
Managing permissions
Permission definition
Summary
10
Drupal Views and Display Modes
Defining Views
Overview
Views features
Customizing Views
Defining display modes
Overview
Popular use cases
Using Views and display modes
Creating a teaser display mode for blogs
Creating a View for a blog listing – option 1 with teaser display mode
Creating a View for a blog listing – option 2 with fields
Explaining the Views editing interface
Creating an RSS feed display
Summary
11
Files, Images, and Media
Assets in Drupal
Use cases
Files
Subsystem
Modules and configuration
Images
Modules and configuration
Media
Modules and configuration
Use cases
Creating research papers
Icons for sports
Tutorials found in YouTube videos
Summary
12
Search
About the feature
Implementation
Frontend experience
Backend
Configuring search
Search pages
Extending Search
Facets
Third-party indexes
Autocomplete
Use cases
Querying for two different movie titles simultaneously
Filter by sport
Restricting a specific content type from search
Summary
13
Contact Forms
Contact forms in Drupal
Basic information
Form management
Form submissions
Configuring contact forms
User profile configuration
Permissions
Extending contact forms
Viewing and managing form submissions
Beyond just a page
More robust email notifications
Spam prevention
More advanced forms
Summary
Part 4:Using - Content Management
14
Basic Content Authoring Experience
Authoring content
Nodes
Menus and taxonomies
Authoring digital assets
Summary
15
Visual Content Management
Blocks and custom block types
Managing blocks
Custom block types
Layout Builder
Configuring a default layout
Node-specific layouts
Setting up Layout Builder
Contributed projects
Paragraphs
Gutenberg
Summary
16
Content Workflows
Configuring workflows
Managing states
Managing transitions
Managing workflows
Managing permissions
Using workflows
Use case
Summary
Part 5:Advanced Topics
17
Git, Drush, Composer, and DevOps
Technical requirements
Git basics
Setup
Common commands
Drush basics
Setup
Common commands
Composer basics
Setup
Common commands
DevOps practices
A developer pushes a new commit to a development branch
Developer reviews and merges code into the main branch
Tag-based deployments for release candidates
Addressing production deployments
Summary
18
Module Development
Concepts
Early Drupal concepts
Modern Drupal concepts
Common patterns
PHP patterns
Symfony capabilities
Drupal patterns
Module definitions
Configuration
PHP code
Templates
Summary
19
Theme Development
Technical requirements
Setting up for theme development
Disabling CSS and JS aggregation
Setting up theme debugging and disabling caches
Turning on verbose error messages
Creating a new theme using the theme generator tool
Creating a new theme from scratch
Creating your dexter.info.yml
Creating your dexter.libraries.yml file
Creating your CSS directory and files
Creating your templates directory
Creating your JS directory
Creating a new theme from a base theme (subtheming)
Popular base themes
Working with Libraries API (and where to put CSS/JS)
Loading the library globally through your theme’s *.info.yml file
Attaching the library through a Twig template
Loading the library programmatically through preprocess
Overriding another module’s or theme’s libraries
Managing dependencies
Notes on CSS grouping
Setting weights and other options
Working with templates
How to find and create templates
Twig basics
Twig filters
Twig functions
Working with the attributes object
Preprocessing data and PHP
Working with CSS
Working with JS
Drupal behaviors
Passing data from PHP into JS
Single Directory Components
Drupal accessibility tips
The visually hidden CSS class
Drupal announce JS API
Using buttons as menu items
Contributed modules that help with theming
Summary
20
Delivering Drupal Content through APIs
Web services primer
Web service APIs in Drupal
Concepts
Modules and configuration
Using web services
Basic JSON:API examples
Basic REST API examples
REST clients
Summary
21
Migrating Content into Drupal
Migration concepts
The Migrate system
Extract
Transform
Load
Custom events
Operating migrations
Contributed modules
Use cases
Summary
22
Multisite Management
The multisite feature
Benefits
Drawbacks
Automating deployments across many sites
Summary
Appendix A - Drupal Terminology
Terminology
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share your thoughts
Download a free PDF copy of this book