Skip to content
Tutorials Center
My learning

Topics

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

  1. 1 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.
  2. 2 Drupal Compared with Other CMSs Compare Drupal with WordPress, Joomla and headless platforms: content modeling, permissions, learning curve, hosting and when each tool fits.
  3. 3 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.
  4. 4 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

  1. 5 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.
  2. 6 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.
  3. 7 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.
  4. 8 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.
  5. 9 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.
  6. 10 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

  1. 11 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.
  2. 12 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.
  3. 13 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.
  4. 14 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

  1. 15 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.
  2. 16 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.
  3. 17 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.
  4. 18 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

  1. 19 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.
  2. 20 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.
  3. 21 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.
  4. 22 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

  1. 23 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.
  2. 24 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.
  3. 25 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.
  4. 26 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.
  5. 27 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.
  6. 28 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

  1. 29 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.
  2. 30 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.
  3. 31 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

  1. 32 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.
  2. 33 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.
  3. 34 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

  1. 35 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.
  2. 36 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.
  3. 37 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.