Theming

Exercise: Override the Node Template for Drupal 8, 9, 10, and 11

Last updated
Categories
Up-to-date with minor version
11.0.x

The available dynamic tokens or variables vary from template to template. Each page is built from a set of templates.

In this exercise, we'll:

  • Override and name the node template file so that it will only affect Article nodes on our Drupal site.
  • Inspect the available variables.
  • Customize the markup.
  • Use the Twig filter without.

We recommend that you try to work through the exercise yourself, and refer to the video if you need help.

Frontend Theming