Drupal Tutorial
Learn Drupal step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Drupal? Learn what Drupal is, what it is good at, who uses it, and how this course teaches a system that cannot run inside your browser.
- Drupal Compared with Other CMSs Compare Drupal with WordPress, Joomla and headless platforms: content modeling, permissions, learning curve, hosting and when each tool fits.
- A Tour of the Drupal Admin Interface Walk through the Drupal administration area: the toolbar, Content, Structure, Appearance, Extend, Configuration, People and Reports, and how to find things fast.
- Drupal Community, Distributions and Release Cycle Understand the Drupal community, drupal.org, contributed modules, distributions, Drupal CMS, semantic versions and how major, minor and security releases work.
Concepts and Installation
- System Requirements and a Local Setup Know what Drupal needs: PHP, a database, a web server and Composer, then choose a local environment such as DDEV, Lando, Herd or XAMPP and check it.
- Installing Drupal with Composer and Drush Install Drupal with composer create-project, run the web installer or Drush site:install, add modules with Composer and log in for the first time.
- The Drupal Project Structure Learn what every folder in a Composer-based Drupal project does: web, vendor, core, modules, themes, sites/default, settings.php, files and config.
- Entities, Bundles and Fields: The Content Model Understand Drupal's content model: entity types, bundles, fields, nodes, users, taxonomy terms, config entities versus content entities, and how they fit together.
- Routing and the Request Lifecycle Follow a Drupal request from index.php through the kernel, routing, access checks, controllers and render arrays to the final HTML response.
- Configuration Management Basics Learn Drupal's configuration management: active versus sync storage, drush config:export and config:import, UUIDs, config split basics and a safe deployment workflow.
Content Types and Fields
- Content Types and Fields Create Drupal content types and add fields: text, number, date, boolean and list fields, required values, cardinality, default values and machine names.
- Field Types, Widgets, Formatters and Display Modes Understand how a Drupal field is edited and shown: field types, widgets for forms, formatters for output, view modes such as teaser, and form modes.
- Taxonomy and Entity References Organize Drupal content with taxonomy vocabularies and terms, hierarchies and tags, and link content together with entity reference fields and reverse lookups.
- Media, Images and Image Styles Manage files in Drupal: image and file fields, alt text, image styles for responsive sizes, the Media module and Media Library, and reusable media entities.
Views and Blocks
- Views Basics Build your first Drupal View: choose what to show, add fields, filters and sorts, set a page or block display, format as a table or grid and paginate results.
- Views Contextual Filters, Relationships and Exposed Filters Go beyond basic Drupal Views: exposed filters for visitors, contextual filters from the URL, relationships to related entities, aggregation and custom display handling.
- Blocks and Regions Place content in Drupal themes with blocks and regions: block layout, custom block types, visibility conditions, plugin blocks, Views blocks and a custom block in code.
- Menus and Layout Builder Build navigation with Drupal menus, menu links and URL aliases, then design page layouts visually with Layout Builder sections, blocks and per-content overrides.
Themes and Twig
- Theme Structure and the Info File Build a Drupal theme from scratch: the .info.yml file, libraries, regions, the templates folder, base themes and how Drupal finds and loads your theme.
- Twig Syntax Basics Learn the Twig template language used by Drupal: printing variables, filters, if and for, whitespace, comments, escaping and Drupal-specific helpers like trans and attributes.
- Template Suggestions and Overrides Override Drupal templates safely: how Drupal picks a template, naming with double hyphens, custom suggestions in PHP, Twig debug and a template-resolver stand-in.
- Preprocess Functions and Libraries Prepare data for Twig with hook_preprocess functions, attach libraries per template, add classes and variables, and learn how the preprocess chain runs, with a runnable stand-in.
Modules and Hooks
- Custom Module Basics Write your first custom Drupal module: folder layout, the info.yml file, namespaces and PSR-4, installing with Drush, and how Drupal discovers module code.
- Routes and Controllers Add custom pages to Drupal: routing.yml, controllers returning render arrays, path parameters, access requirements, menu links and a runnable route-matching stand-in.
- Hooks and Event Subscribers Change Drupal behaviour without touching core: hook implementations, alter hooks, OOP hooks in Drupal 11, event subscribers and a runnable hook-system stand-in.
- Services and Dependency Injection Understand the Drupal service container: define services in services.yml, inject dependencies, use core services like entity_type.manager, and test with a container stand-in.
- Plugins and Block Plugins Learn the Drupal plugin system: plugin types, discovery with attributes, writing a custom block plugin with configuration and cache metadata, and a plugin-manager stand-in.
- The Form API Build forms in Drupal with the Form API: form arrays, buildForm, validateForm, submitForm, ConfigFormBase settings forms, form state, AJAX and a runnable validation stand-in.
Users, Roles and Security
- Roles and Permissions Manage Drupal users, roles and permissions: the built-in roles, defining module permissions in permissions.yml, checking access in code and a role-based access stand-in.
- Drupal Security Practices Keep Drupal sites safe: output escaping, database API placeholders, CSRF tokens, text formats, file uploads, trusted hosts, updates, security advisories and secure coding stand-ins.
- Access Control and Entity Access Control who can view, edit and delete content in Drupal: entity access hooks, AccessResult, custom access checkers, node grants, content moderation and access stand-ins.
Deployment and Performance
- Configuration Management and Deployment Move Drupal sites between environments: the config system, drush config:export and import, config splits, update hooks, a deployment checklist and a config-diff stand-in.
- Caching and Cache Tags Understand Drupal's cache system: page cache, dynamic page cache, render cache, cache tags, contexts and max-age, invalidation in code and a runnable tag-invalidation stand-in.
- Performance Tuning and Updates Make Drupal fast and keep it healthy: PHP and database tuning, aggregation, image optimization, Redis, CDN, queues, cron, Views caching, monitoring and a measuring stand-in.
Projects and Practice
- Project: Event Listing Site Build a complete Drupal event site: plan the content model, fields, a Views listing with filters, a theme template, permissions, caching and deployment, with a data-model stand-in.
- Project: A Notes Module from Scratch Build a complete custom Drupal module: info file, permission, route, controller, form, service, block plugin, cache tags and a test plan, with a JavaScript stand-in of the whole flow.
- Practice: A Drupal Developer Review Test your Drupal knowledge with code review exercises on themes, modules, access, security and deployment, plus an interview-style question set and a runnable review checklist.